Closed Elius94 closed 1 year ago
Did some further testing, anything that is falsy will throw an error because the if statement just uses a !
rather than a strict test for null | undefined
You are right! In addition I think that empty strings in node are considered false if you test them. Tnaks
Opening a PR to address it if you don't mind. #69
What happened?
If you define a OptionPopup with selected: "", it throw a error considering selected undefined.
What should have happened?
It should allow to set it to empty string
Code
Library Version
3.0.4
Node Version
19.3
What operating system are you using?
Windows
Terminal
Windows Terminal
Interest to fix the bug