-
-
Notifications
You must be signed in to change notification settings - Fork 131
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
Modals: error messages not showing on small screens, but showing on large screens #240
Comments
I would need to have a repository that reproduces this to help, but it also doesn't seem to be related to TailwindCSS Stimulus Components. |
It might not be related to TailwindCSS Stimulus Components for sure. I am using Jumpstart Pro. When I get some time to reproduce this I will put something up, otherwise it might be possible to reproduce with Jumpstart Pro |
Sounds good 👍 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
HI! First of all thank you for this work!
I am displaying a modal with a form to create a post, running backend validations on submit and displaying any errors on the modal if any, otherwise closing the modal and redirecting to the new post page
This is my code
On sm screens, the error messages do not show at all on the modal(or anywhere I could see). The modal just stays blank. I put a breakpoint into the form, checked and the post does have errors, even ran
render "error_messages", resource: form.object
and the error messages are being rendered, just not being displayed!On md and lg screens, the form errors show well (though one problem I have on these screens is once the errors show on the form, if I close the modal and click create post again, the previous errors are still on the form. The form is reset only after a page refresh. Ideally they should be gone when I close the form. Any way around this as well?)
Thank you very much!
The text was updated successfully, but these errors were encountered: