spicywebau / craft-neo

A Matrix-like field type for Craft CMS that uses existing fields
Other
403 stars 63 forks source link

[Craft 5] Content is removed from new neo blocks #902

Closed ayush000 closed 1 week ago

ayush000 commented 1 week ago

Bug Description

When we create a new entry in Craft 5, add a new neo block, add content and try to save it, the content gets deleted on saving. When we set Craft's autosaveDrafts config to true, the content stays fine. This issue seems similar to this issue reported for Craft 4: https://github.com/spicywebau/craft-neo/issues/894.

We tried using the 5.x branch of craft-neo and it's fixed there. Could we make a release for the 5.x branch of craft-neo too, so that this issue is fixed here as well?

Steps to reproduce

  1. Create a new entry
  2. Add a neo block
  3. Write some content in that neo block
  4. Save the entry

Expected behaviour

Content in all neo blocks should stay

Neo version

5.0.3

Craft CMS version

5.2.0

What is the affected Neo field's propagation method?

No response

Does this issue involve templating, and if so, is eager-loading used?

This is not a templating issue

ayush000 commented 1 week ago

@ttempleton 🙏