luyadev / luya-module-cms

The LUYA CMS module provides a full functional CMS for adding contents based on blocks.
https://luya.io
MIT License
33 stars 46 forks source link

Data in blocks gets saved even if exiting without pressing button "save" #199

Open martinpetrasch opened 5 years ago

martinpetrasch commented 5 years ago

What steps will reproduce the problem?

  1. Enter a block and edit data
  2. Exit block by clicking "Esc"

What is the expected result?

The new data shouldn't be saved.

What do you get instead? (A Screenshot can help us a lot!)

The data is saved.

Additional infos

Q A
LUYA Version dev-master (admin & cms)
nadar commented 5 years ago

but not in database? a reload will show the old data?

martinpetrasch commented 5 years ago

You're right. It's not saved in the database.

TheMaaarc commented 5 years ago

The block should probably remember the data before editing and write it back if it's not saved.

hbugdoll commented 3 years ago

zaaEsc only closes the editing modal.

Changing block data simultaneously changes the displayed block, which is overlayed by the modal. Is this the desired behavior?