We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I have the problem that when I pass a valid chosenId, the tree does the formatting for the active node but does not expand the path to the node.
The text was updated successfully, but these errors were encountered:
Can you create a small reproduction or add a failing test?
Sorry, something went wrong.
Apparently no strings are accepted as valid IDs. Is it perhaps possible to get an update where strings are also accepted as IDs?
With chosenId = '3'
With chosenId = 3
Here is also the code i used:
Controller: `import Controller from '@ember/controller';
export default class TreeController extends Controller { chosenId = 3;
treeData = [ { id: 0, name: 'Root', isExpanded: false, isSelected: false, isVisible: true, children: [ { id: 1, name: 'First Child', isExpanded: false, isSelected: false, isVisible: true, children: [], }, { id: 2, name: 'Second Child', isExpanded: false, isSelected: false, isVisible: true, children: [ { id: 3, name: 'First Grand Child', isExpanded: false, isSelected: false, isVisible: true, children: [], }, ], }, ], }, ]; }`
Template: div XTree @model={{this.treeData}} @chosenId={{this.chosenId}} as |node| {{node.toggle}} {{node.model.name}} /XTree /div
div XTree @model={{this.treeData}} @chosenId={{this.chosenId}} as |node| {{node.toggle}} {{node.model.name}} /XTree /div
Strings are accepted, but your id values are not strings, that's likely the issue. Either pass chosenId as a number or update your id to be strings.
id
chosenId
No branches or pull requests
I have the problem that when I pass a valid chosenId, the tree does the formatting for the active node but does not expand the path to the node.
The text was updated successfully, but these errors were encountered: