Skip to content

Commit

Permalink
fix: remove ShadyDOM check to always get element from shadowRoot
Browse files Browse the repository at this point in the history
  • Loading branch information
sosa-vaadin committed Oct 11, 2021
1 parent 58d05d7 commit 7e8c87a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/vaadin-dialog_draggable-resizable-test.html
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,7 @@
const bounds = container.getBoundingClientRect();
const coords = {y: bounds.top + (bounds.height / 2), x: bounds.left + (bounds.width / 2)};
let target = document.elementFromPoint(coords.x, coords.y);
if (!window.ShadyDOM) {
if (dialog.$.overlay.shadowRoot.elementFromPoint) {
target = dialog.$.overlay.shadowRoot.elementFromPoint(coords.x, coords.y);
}
drag(target);
Expand Down

0 comments on commit 7e8c87a

Please sign in to comment.