Skip to content

Commit

Permalink
Fixed image resizer in shadow dom.
Browse files Browse the repository at this point in the history
  • Loading branch information
niegowski committed Oct 7, 2024
1 parent c744843 commit b9573d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/ckeditor5-widget/src/widgetresize/resizer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -512,5 +512,5 @@ function extractCoordinates( event: MouseEvent ) {
}

function existsInDom( element: Node | DocumentFragment | undefined | null ) {
return element && element.ownerDocument && element.ownerDocument.contains( element );
return element && element.isConnected;
}

0 comments on commit b9573d4

Please sign in to comment.