payload-plugin-lexical icon indicating copy to clipboard operation
payload-plugin-lexical copied to clipboard

CMS thinks content has changed

Open johannesschaffer opened this issue 2 years ago • 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 https://github.com/AlessioGr/payload-plugin-lexical/issues/14#issuecomment-1500558525

johannesschaffer avatar Apr 07 '23 21:04 johannesschaffer

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

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

AlessioGr avatar Apr 07 '23 22:04 AlessioGr

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.

AlessioGr avatar Apr 07 '23 23:04 AlessioGr