Skip to content
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

Closed
joeyHarig opened this issue Jul 2, 2021 · 7 comments
Closed

Bug: input-enabled calcite-tree not removing items from selected #2437

joeyHarig opened this issue Jul 2, 2021 · 7 comments
Assignees
Labels
4 - verified Issues that have been released and confirmed resolved. bug Bug reports for broken functionality. Issues should include a reproduction of the bug.

Comments

@joeyHarig
Copy link
Contributor

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

@joeyHarig joeyHarig added 0 - new New issues that need assignment. bug Bug reports for broken functionality. Issues should include a reproduction of the bug. needs triage Planning workflow - pending design/dev review. labels Jul 2, 2021
@jcfranco jcfranco added 1 - assigned Issues that are assigned to a sprint and a team member. and removed 0 - new New issues that need assignment. needs triage Planning workflow - pending design/dev review. labels Jul 2, 2021
@jcfranco jcfranco added this to the Sprint 6/21 – 7/2 milestone Jul 2, 2021
@jcfranco jcfranco self-assigned this Jul 2, 2021
@jcfranco jcfranco added 2 - in development Issues that are actively being worked on. and removed 1 - assigned Issues that are assigned to a sprint and a team member. labels Jul 15, 2021
@jcfranco
Copy link
Member

@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 multi and not multiple.

@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 jcfranco added the need more info Issues that are missing information and/or a clear, actionable description. label Jul 15, 2021
@paulcpederson
Copy link
Member

@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.

@jcfranco
Copy link
Member

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! 💪🏼 🛠️

@jcfranco jcfranco removed the need more info Issues that are missing information and/or a clear, actionable description. label Jul 15, 2021
@jcfranco jcfranco added 3 - installed Issues that have been merged to master branch and are ready for final confirmation. and removed 2 - in development Issues that are actively being worked on. labels Jul 16, 2021
@jcfranco
Copy link
Member

Installed!

@jcfranco jcfranco assigned joeyHarig and unassigned jcfranco Jul 16, 2021
@jcfranco
Copy link
Member

@joeyHarig Can you help verify once this gets deployed to @next? 🙇🏼‍♂️

@joeyHarig
Copy link
Contributor Author

@jcfranco Just verified that the issue has been resolved.

@jcfranco
Copy link
Member

Awesome, thanks!

@jcfranco jcfranco added 4 - verified Issues that have been released and confirmed resolved. and removed 3 - installed Issues that have been merged to master branch and are ready for final confirmation. labels Jul 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4 - verified Issues that have been released and confirmed resolved. bug Bug reports for broken functionality. Issues should include a reproduction of the bug.
Projects
None yet
Development

No branches or pull requests

3 participants