Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upgetSelectedValues only return previous clicked values #6536
Comments
|
if |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment


Expected Behavior
https://materializecss.com/select.html
Say we have 3 options as described in the above link. Here are my actions and return value
instance.getSelectedValues()e.target.valueOption 1Option 1Option 2Option 1Option 2Option 3Option 2Option 3Option 1Option 3Option 1When
instance.getSelectedValues()is called, it always return previous clicked values.It should return the current clicked value
Current Behavior
See the return from column 4
Steps to Reproduce (for bugs)
Add the below code to the select onChange
Context
Your Environment