-
Notifications
You must be signed in to change notification settings - Fork 115
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[WIP] disable legacy options and keep editors in DOM
Prior to this, when dropping a snippets, its editors would be started but not added to the DOM, which means that when clicking on it, there would be a significant delay before options would be accessible. Note that this delay is present when clicking on a Snippet that is not dropped for the first time. The reason for this delay is because even thought the widgets where not in the DOM, they were still stored somewhere inside the started editor, reducing the need for renders when clicking on a snippet that was previously enabled. This commit tries to mimic the old behaviour by keeping every element in the DOM and mounted, just hidden with a d-none when the editor is not currently enabled. This could have some side effects, like in tours where a SnippetEditor selected is not the one currently visible. For this reason, this commit is kept separate for now.
- Loading branch information
1 parent
67342bd
commit 0565709
Showing
2 changed files
with
102 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters