Validation error messages are not displayed when screen size is equal or less than 1024px #4652
Replies: 3 comments
-
Hey @GhostOrder28 - this is actually intended behavior to keep the mobile admin UI less cluttered. So I will convert this to a discussion, where we can discuss potential improvements to validation errors in the mobile admin UI. |
Beta Was this translation helpful? Give feedback.
-
For custom errors, I do think it's important for the text to be shown regardless of screen size - though there is flexibility to perhaps display them differently. I'm running into this because a nested and top level field need to have coordinating ids. Psuedocode of relevant info:
My custom validator for Portals checks if the payload object is actually populated. If it isn't, that means it's client side code and makes a network call to make sure the shipping location's partner and the Portal's partner are the same, otherwise it uses the local API (which isn't a very graceful determination, but I'm unsure how else to do it). When validation fails, it just highlights the shipping location in red, rather than indicating that the shipping location isn't valid given the partner selected. |
Beta Was this translation helpful? Give feedback.
-
I agree with @stephaniesyed — every field should have a clear way to display its error message without requiring custom components. Probably above or below the input. Regarding the 1024px breakpoint: I believe there's sufficient space at that size to show tooltips similarly to larger screens. Since the sidebar is already converted to stack at 1024px, it feels reasonable to allow tooltips to remain visible at that width. Perhaps the breakpoint for hiding tooltips could be lowered, or set to ≤1024px, to better balance clarity and layout constraints. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Link to reproduction
No response
Describe the Bug
Validation error messages are not displayed when screen size is equal or less than 1024px
To Reproduce
Payload Version
2
Adapters and Plugins
No response
Beta Was this translation helpful? Give feedback.
All reactions