Replies: 1 comment 1 reply
-
|
Hi @NosillaCast ! I believe you can create an implementation to check if the value of the textfield is contained inside your source data at the textfield's blur event. You could also check if the callback onSelectItem has been fired just by implementing it, for it confirms a selection - just set another variable or hidden field whenever the method is fired and check it instead of checking the text field. These validations are very specific to each use case, that's why I didn't add any. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm using this library to great success, but I want to do error checking on whether the user has actually selected anything from the dropdown. Want an error thrown under three conditions:
I think there's a handler on keyup, which I think is triggered when the person selects from the list or uses arrow keys and hits enter, but I'm not sure how to access that to throw an error if they don't keyup. I'm hoping error checking is already written like maybe in the Bootstrap dropdown, but I haven't found it there yet.
Here's how I'm using @Honatas's library:
https://nosillacast.github.io/time-shifter-clock/
Beta Was this translation helpful? Give feedback.
All reactions