Multiselect from different groups returns only selections from one group #2286
Labels
Enhancement
Enhancement request [class->Improved #{number}: {title}]
Tools
Issues related to pyRevit commands [subsystem]
✈ Pre-Flight checks
🐞 Describe the bug
Unsure if this is a bug or intended -- so apologies if this is in the wrong place. I think it could be improved regardless.
When using forms.SelectFromList with a dict(, ) input and setting multiselect=True, the user can make multiple selections from different groups, but only items in the group currently open when clicking the button will be output.
⌨ Error/Debug Message
♻️ To Reproduce
pseudocode to reproduce:
categories = { "one", ['a', 'b', 'c'], "two", ['d', 'e', 'f']}
selected = forms.SelectFromList.show(categories, multiselect=True)
--- running code : user checks 'a' from "one", changes categories and selects 'd' from "two", then submits
output: selected = ['d'] # selection of 'a' is missing, even though it was checked when form was closed
⏲️ Expected behavior
The expected behavior from the above example would be to return ['a', 'd']
🖥️ Hardware and Software Setup (please complete the following information)
Additional context
No response
The text was updated successfully, but these errors were encountered: