-
-
Notifications
You must be signed in to change notification settings - Fork 104
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
enhancement(Autocomplete) allow default selected option(s) #577
base: v2-dev
Are you sure you want to change the base?
enhancement(Autocomplete) allow default selected option(s) #577
Conversation
Will add additional spec tests later |
1f620aa
to
aa9c828
Compare
…n single/multiselect materializecss#479
…g of toggling checkbox since list is empty if minLength option is greater then 0 materializecss#479
Additionally changed the selectOption method since selecting values was depending on rendered html in multiSelect, if the minLength option is greater then 0, no results are rendered in the html element, as a result, no options where able to mark as selected, I had to remove the conditional check on the list item and updated selected items using the selectedValues property followed by re-rendering the dropdown component |
Proposed changes
This enhancement allows default selected for single or multiselect, as requested per #479
I have implemented an additional option
selected
that allows an array of alphanumeric ids, given the items idsThis implementation maps the
selected
ids in theselectedValues
object array and handles selection of single or multiple itemsExample single select:
Example multi select:
Types of changes
Checklist: