luya-module-cms icon indicating copy to clipboard operation
luya-module-cms copied to clipboard

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

Open martinpetrasch opened this issue 6 years ago • 4 comments

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)

martinpetrasch avatar Jun 14 '19 11:06 martinpetrasch

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

nadar avatar Jun 14 '19 11:06 nadar

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

martinpetrasch avatar Jun 17 '19 07:06 martinpetrasch

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

TheMaaarc avatar Jul 12 '19 07:07 TheMaaarc

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?

hbugdoll avatar Sep 28 '21 21:09 hbugdoll