Option Groups Handling when Multiple is disabled #104
Replies: 3 comments 2 replies
-
I will fix the issue, and implement your suggestion in the future release. |
Beta Was this translation helpful? Give feedback.
-
@ctalkington-brado I have fixed the above issue. And have added a new feature It would return the group's value if all of its child options are selected. This feature is available in the release v1.0.26 |
Beta Was this translation helpful? Give feedback.
-
I am pretty confused on the single group options. I have not been able to get a group option to select in a single select mode. Parameters:
DOM virtualselect.options:
From the DOM view, I would like to have the above NonSelectable OptionGroup selectable. My input options are only 2 layers deeps, my understanding from the comment above is that I use 3 layers (duplicating the layer 1 & 2 with basically the same option) then...
I think the confusion is there is no documentation how an pption that contains other options translates into isGroupOption and isGroupTitle values, what are the valid combinations of these values, and lastly how to set them via the given properties and methods. There is value is having both selectable and non selectable group options (and methods to turn them on and off selectively). As for functionality, its just classification:
Example would be NAICS codes, where one can select a code from layer 1 to layer 6. |
Beta Was this translation helpful? Give feedback.
-
As of 1.0.25, if you have a virtual-select that has groupings but does not have multiple selection enabled. when you click the main group title, it puts the label of all the sub-options as the displayed value and sets the underlying value to the first sub-option from that group from what I can tell.
I would propose that in such a case it should use the top-level assigned value from the options array. right now i have to use the
disableOptionGroupCheckbox
to prevent the virtual select from being filled with labels of all sub-options and i have to maintain an additional item if i want to allow selecting the whole group value (which is a parent id that is sent to server to query everything in such a hierarchy)Beta Was this translation helpful? Give feedback.
All reactions