-
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
Bug: input-enabled calcite-tree not removing items from selected #2437
Comments
@joeyHarig I started looking into this and noticed that it works correctly if you press the shift key when clicking items. You can use this as a workaround in the meantime. Also, note that the selection mode should be @paulcpederson Since users have an expectation of how checkboxes should behave, should we always toggle the value when clicking an input-enabled tree item regardless of whether the shift key was pressed or not? https://codepen.io/jcfranco/pen/PompyrW?editors=1111 (based off the original test case) |
@jcfranco this is a bug. This worked fine in beta.58 https://codepen.io/paulcp/pen/mdmWQRW I'm not sure what changed but they should work like checkboxes. |
Thanks for the info! The regression is probably related to my previous changes. It's worth noting that the event payload selection issue is present in beta.58 too. Will fix! 💪🏼 🛠️ |
Installed! |
@joeyHarig Can you help verify once this gets deployed to |
@jcfranco Just verified that the issue has been resolved. |
Awesome, thanks! |
Actual Behavior
Items are not removed from the selected array (returned from
calciteTreeSelect
->event.detail.selected
) once they have been unchecked.Expected Behavior
When
input-enabled
is true and items are unselected, the items should be removed from the array: event.detail.selected.Reproduction Steps or Sample
https://codepen.io/joeyHarig/pen/eYWmpbm?editors=1111
Relevant Info
Version: latest
The text was updated successfully, but these errors were encountered: