-
Notifications
You must be signed in to change notification settings - Fork 88
retain the selected component (if any) when previewing a form configu… #2687
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
retain the selected component (if any) when previewing a form configu… #2687
Conversation
…ration and coming back to the designer mode
Deals with this issue #2481 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @teboho. Please move this logic to the reducer and remove useEffect from the designerMainArea.
… configuration and coming back to the designer mode" This reverts commit 8b68c4e.
preview.-.Made.with.Clipchamp.mp4 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @teboho. Please retest it, after switch to the preview mode and back I got an empty properties panel, see below.
Also the isPreview
flag is used by the Preview
button only, the designer doesn't take it into account and uses form mode during render. Designer should use the isPreview
flag otherwise this flag can be removed. Previous implementation (with useEffect) worked because of multiple unneeded re-renders
…ration and coming back to the designer mode