verbb / vizy

A flexible visual editor for Craft CMS
Other
43 stars 8 forks source link

Intermittent issue saving content when nested Vizy field is present #264

Open padmedia opened 8 months ago

padmedia commented 8 months ago

Describe the bug

I have an intermittent issue when saving a Vizy field with a nested Vizy editor. I've created a simple example video on Loom: https://www.loom.com/share/6c30caccbe034766815ddc5cb6bf9001

No errors are in the browser console or the debug toolbar.

Steps to reproduce

  1. Create a Vizy field with a nested Vizy field
  2. In the vizy field add the nested Vizy editor, and then add any field before or afterwards and save content
  3. Intermittently doesn't save content.

Craft CMS version

4.5.6.1

Plugin version

2.1.11

Multi-site?

No

Additional context

PHP version: 8.0.23

engram-design commented 8 months ago

It's hard to see from the video how quickly you're saving the entry (I imagine you're doing command+s), as the autosave spinner is still going when the entry is being saved and the page refreshed. Could it be that you're saving too quickly before the autosave has been triggered?

To be clear it should work both ways, but just wanting to isolate the issue as best we can, as I can't replicate it on my end through normal usage, saving and adding blocks.

padmedia commented 8 months ago

Hey thanks for the quick response. I've slowed things down in this video and used the save button and also showed the console: https://www.loom.com/share/6d0ecdeba71f4b3290786ac86637245e

Thanks for looking into this.