Skip to content
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

required: true doesn't seem to work & cms thinks content has changed #14

Closed
johannesschaffer opened this issue Apr 5, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@johannesschaffer
Copy link

johannesschaffer commented Apr 5, 2023

Even if the editor is empty, still passes and lets me publish.
Additionally, on a blank page (without having writting anything inside the editor): If I reload, Payload warns me that content is gonna be lost. That's very likely also why it passes the "required: true" with nothing in the editor

@johannesschaffer johannesschaffer changed the title required: true doesn't seem to work required: true doesn't seem to work & cms thinks content has changed Apr 5, 2023
@AlessioGr AlessioGr added the bug Something isn't working label Apr 6, 2023
@AlessioGr
Copy link
Owner

Just fixed that in v0.1.2!

@johannesschaffer
Copy link
Author

johannesschaffer commented Apr 7, 2023

Still doesn't quite work. As far as I can tell the "required" works now (however without showing where the error happend - you probably missed the error popup in your custom field), but a blank editor field added to a collection still makes payload think there is unsaved content (for comparison, adding an empty "text" field works like intended)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants