Undo not working in CSS


#1

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

Edit:
Windows 10
Wappler 1.4.0


#2

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?


#3

When writing CSS in code view in a CSS file.


#4

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


#5

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


#6

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?


#7

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


#8

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:


#9

#11

This has been fixed in version 1.5.2


#12

#13