-
Notifications
You must be signed in to change notification settings - Fork 301
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
SelectBoxIt applies itself to hidden form fields #94
Comments
I just released SelectBoxIt v2.8.0, which no longer calls SelectBoxIt on hidden select boxes. Let me know if you need anything else! |
Thanks. I'll grab the new release. |
@peterfarrell I have found certain use cases where calling SelectBoxIt on hidden select box elements is a valid use case. Because of this, I have reverted the SelectBoxIt logic to allow SelectBoxIt to be called on hidden select box elements. If you do not want to call SelectBoxIt on hidden select boxes, consider altering your jQuery DOM selection statement, like this: $("select:visible").selectBoxIt(); |
I should have been more clear. I mean applying a selectboxit on a:
|
Ahh got it. I just updated the code to not run SelectBoxIt on elements other than select boxes. Thank you for clarifying! |
Awesome thanks! The reason why I reported it is that in our -- an if condition either shows a select box or text with form hidden input (if you don't have the right to select anybody else but yourself). Both have the same ID. The funny thing that selectboxit made the hidden field visible and hence the bug report. Thanks for fixing so fast! |
We have some conditional fields -- something they are hidden because the user isn't allowed to select something and a hidden field + text is used instead:
SelectBoxIt tries to apply itself to the hidden form field.
The text was updated successfully, but these errors were encountered: