-
Notifications
You must be signed in to change notification settings - Fork 313
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
Advanced Select removeOption
doesn't work after update
#417
Comments
removeOption
don't work after update
removeOption
don't work after updateremoveOption
doesn't work after update
@umaraziz0 Hi, |
Have the same probleme! |
Find a solution to this problem by using try catch construct. So in catch we can handle errors and in finally continue executing the code!
|
Hey @umaraziz0 - please check the latest version, the issue has been fixed. Thanks! |
How to remove all the select options? Need to remove select options without knowing the keys as options are remotely fetched. |
Summary
Advanced Select add & remove options don't work after update
Steps to Reproduce
Tried using the example component in the docs
Demo Link
https://preline.co/docs/advanced-select.html#add-remove-options
Expected Behavior
removeOption
should work as intended.Actual Behavior
val
values andfalse
Uncaught TypeError: Cannot read properties of null (reading 'length')
and doesn't do anything else.Seems to occur in single select dropdowns, the multiple select example in the docs has no issue.
This also happens in one of my projects, when I tried upgrading the package version due to this bug: #414 , where in my case no items are removed.
Preline version: ^2.4.1
Chrome version: Version 126.0.6478.185 (Official Build) (arm64)
Screenshots
The text was updated successfully, but these errors were encountered: