You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
MaterializeCSS Chips autocomplete functionality gets data from datalist but it also allows user to add their own typed data as chip. There must be option to stop the user data when its not from the autocomplete datalist
I have made a pull request for this issue, it basically adds the option to only allow to select data from the autocomplete, and validates if this is the case before adding a chip when pressing enter. PR #5725
Since #5725 hasn't got merge since 2018, I have come up with a workaround for those having the same issue. The @dorphalsig's approach didn't work for me (maybe the current API is different than those days). This sample will prevent the user to tag against the autocomplete data.
Description
MaterializeCSS Chips autocomplete functionality gets data from datalist but it also allows user to add their own typed data as chip. There must be option to stop the user data when its not from the autocomplete datalist
Repro Steps
Using the latest version v0.98.2 138be0b
Check this codepen: https://codepen.io/anon/pen/PmvEEQ
Currently fixed using in Chip.Add event
Any other suggestions also welcome.
The text was updated successfully, but these errors were encountered: