Undo commands work well on css pages until you save them. Once saved, the history is lost and ctrl+z does nothing. PHP pages work as expected. Reproduced with and without debugging on.
How to reproduce
Create a css page
add some code, don’t save.
undo your changes, several times - all should work fine.
Tested this but can’t recreate it. I can undo after saving, as well as before saving the file. Are you sure you don’t restart Wappler after saving the CSS file?
How do you add the changes there - i tested by manually adding different properties and rules in the CSS file in code view.
Maybe it has to do with the length of the css file? When recreating I was pasting from a very large file (no restarts of wappler involved). I’m uploading that file to see if you can reproduce on your end, as I’ve left my computer idle for an hour or so and right now it’s working. It seems that it could also have to do with long working sessions. style.zip (2.0 KB)
I just noticed it today and it was systematic this morning until I had to leave the computer for other things. I upgraded to 3.7.3 yesterday night and I had never noticed this before.
I had debug enabled for a while and I’m pretty sure the error was captured, although what I was trying to capture was the ‘blank on save’ issue. Please ignore the error where I was using random words on the css file to see if it saved, that’s to be expected.
This seems interesting:
Thank you so much for posting this.
Was never able to capture this nor reproduce this reliably.
We have been seeing this issue in one of the systems where we keep a v2.x Wappler copy for an older project. It has been there since then I think.
Hope the bug is found an fixed.