-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Re-enable EditContext on browsers that support it
FIX: Re-enable `EditContext` use on Chrome 126 and up.
- Loading branch information
Showing
1 changed file
with
1 addition
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -81,7 +81,7 @@ export class DOMObserver { | |
this.flush() | ||
}) | ||
|
||
if (window.EditContext && (view.constructor as any).EDIT_CONTEXT === true && | ||
if (window.EditContext && (view.constructor as any).EDIT_CONTEXT !== false && | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
marijnh
Author
Member
|
||
// Chrome <126 doesn't support inverted selections in edit context (#1392) | ||
!(browser.chrome && browser.chrome_version < 126)) { | ||
this.editContext = new EditContextManager(view) | ||
|
This api bugged our app heavily. Seems like still not ready for production.
webstudio-is/webstudio@fd8636c