Undo not working in CSS

As the topic header says, undo does not work when coding in CSS

Edit:
Windows 10
Wappler 1.4.0

Hi Ben,

Do you mean when writing css in code view in a css file? Or when using the styles panel and writing css there?

When writing CSS in code view in a CSS file.

And do you mean clicking on the undo icon in de code view toolbar or pressing ctrl-z? Ctrl-z should usually work fine

After saving the CSS file, there is no undo either using CTRL-z or using Edit -> Undo

aaah so you mean after the saving file … seems to be related with the new linter check if it detects css errors or not.

In general we do clear the history after a successful save … or app restart.

We can’t keep the history forever … it will fill up your memory.

Or do you have better suggestions?

after further investigation - we tackled that issue to be indeed on CSS files only - because the code gets prettified and/or auto prefixer applied.

@patrick will improve this - so that the history state is not reset

Thanks @George, I was just in the process of writing a whole assay on what happens. As usual you guys are much quicker than I am.

I managed to get rid of the essay by hit CTRL-x :grin:

2 Likes

This has been fixed in version 1.5.2