AlessioGr/payload-plugin-lexical

CMS thinks content has changed

Opened this issue · 2 comments

Setting validation "required" works since 0.1.2 (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)

Originally posted by @johannesschaffer in #14 (comment)

Arc 2023-04-08 at 00 53 39@2x

The error popup is there actually - just at the completely wrong position. Whoops! Will fix!

Setting validation "required" works since 0.1.2 (however without showing where the error happend - you probably misses the error popup in your custom field)

Just fixed the error popup in v0.1.5. In fact, it looks even better than the default Slate editor now, which completely missed the red overlay ^^

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)

I cannot quite reproduce / understand that. Could you maybe elaborate on it and add screenshots? If I have an empty editor on my page and try to leave the page, I'm getting no warning pop-up before exiting the page.