-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
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
ix-tree-item click and toggle issues #1633
Comments
Hello @piotretm, Thank you for reaching out. Even if there are no subitems the tree items can still be selected, and therefor should show the pointer, aren't they? |
Hi @nuke-ellington, Anyway, a bigger issue I think is that even if the expand toggle is not visible (item without children) and I click in the area where it should be, there is no click event. It is only triggered if I click the part of the row with the label. |
The item will get selected, so something is happening in this case.
I agree. Backlog item created. We will have another look at that behaviour. |
🤖 Hello @piotretm Your issue will be analyzed and is part of our internal workflow. JIRA: IX-2270 |
Thanks. Regarding the first part, I understand that this might be the correct behavior depending on the scenario. Is there a way to expand/collapse an item instead of selecting it? |
I think you should be able to set the TreeContext in response to the event, in order to override the default behaviour. |
Prerequisites
What happened?
Expanding the
ix-tree-item
is only possible by clicking the toggle. However, the cursor is always set to be a pointer even if noclick
action is defined.Also, if I have an item that is not expandable clicking on the area where the toggle should be is not triggering click action.
Would be great to have an option to set this behavior in a way that items with children are always triggering
toggle
no matter which part I click and that regular items would triggerclick
in the same way.Example from the docs can be used as a reference.
Expanded example with console logs for events.
What type of frontend framework are you seeing the problem on?
JavaScript
Which version of iX do you use?
2.6.0
Code to produce this issue.
The text was updated successfully, but these errors were encountered: