Split view. Made an edit in the code split view and hit save – formatting lost. But then I undid that edit, restarted Wappler and performed the same edit without issue. The edit was part of a modal.
Yes it is important to know exactly where you edit. When you are editing in the root of the body for example we refresh the whole design view. While when editing nested elements only those get partially refreshed.
So if you can reproduce it exactly, do include the exact html code as well.
This has started to happen to projects for me too.
(5.1.0, NodeJS, Mac M1)
It affects any page that isn’t in the root views folder (in a subfolder). My project is set to be links relative to document but until very recently (perhaps 5.0.4) it wasn’t an issue and those pages could be rendered correctly in Design view.
After changing the project to site root relative I noticed that the Bootstrap CSS and JS file links in the layout page were missing the leading /
Adding it manually seems to have corrected it
I did re-save the page between but for some reason the links were still missing the leading slash. It seems to be fine now. I’ll keep an eye and let you know if I get any further recurrence.
I think I’ve identified which files it is…
It is all the files added from the project settings frameworks (style.css, fontawesome local, dmxAppConnect.js etc) They’re being left alone while all the others are being updated.
Still have not had time for minimal test page, but for me this happens randomly but always on Save. Today, I’m working on elements contained within a modal as well as page flows. I am bouncing back and forth making changes inside both the flow and the modal, and then hitting save. The display loses formatting on Save. I re-open the page and it clears.