-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Form control with name is not focusable error on browser. #2492
Comments
This could be resolved by using this code:
This makes browser side validations useless. |
It's not solution, but dirty hack. Because will disabled all HTML validation. |
setting style to |
i have the same issue but with ck_editor. I fixed the select using the suggestion of AlexWheeler but i cant hook the js function to change the css properties of the ck_editor. Does anyone have had this issue ? Thanks |
Same here |
I had the same issue. I figured out that I had set |
After solving issues of nested models, I have encountered new problem.
For example you have
Parent
andChild
model.Parent
has manyChildren
.Child
has validation of precense ofParent
.In rails_admin when you try to create
Child
and not assign Parent then click to Save. It gives Javascript error:And I have found why this is happening. This drop-down form element is not drop-down at all. It is input text field with autocomplete Jquery functionality.
The real select field that assigns Parent to Child is here:
HTML inspector shows that select field that assigns parent has
display:none
style among with required type!.When user clicks to Save and this field is empty, browser validation will be promted. Browser tries to focus to it, because it has
display:none
value it throws javascript error that is mentioned above.The text was updated successfully, but these errors were encountered: