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
Unfortunately there really isn't a good way of doing this. When the reset on a form is triggered, I have not seen any event that is triggered on the input itself, thus the 'x' is never removed.
The suggested fix would be to add an event to your reset button that runs something like $("input").addClear("option", "hide") to the inputs being reset.
That being said I have created a branch where the plugin also searches siblings of the input for a reset button and if found, binds to the click event of the reset button.
I don't like this approach because it is extremely reliant on the form being laid out in a simple way. A more complex layout would break the selector. If anyone can come up with a better way, I'm open to suggestions.
If form has a reset button, symbol X does not disappear when button is clicked
See example:
http://www.bootply.com/nIZihCQwUq
The text was updated successfully, but these errors were encountered: