Skip to content

Commit

Permalink
Merge branch 'fix/wwc-unsafe-inline' into staging
Browse files Browse the repository at this point in the history
  • Loading branch information
Aldemylla committed Dec 16, 2024
2 parents 0e067dc + 15b25c6 commit 4ef6044
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions src/utils/transformIntoDraggableBubble.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,7 @@ export function transformIntoDraggableBubble(element, referenceElement, nonce) {
const backdrop = document.createElement('section');
if (nonce) backdrop.setAttribute('nonce', nonce);

backdrop.setAttribute(
'style',
`
position: fixed;
left: 0;
top: 0;
width: 100vw;
height: 100vh;
`,
);
backdrop.classList.add('draggable-backdrop');

element.addEventListener('mousedown', (event) => {
event.preventDefault();
Expand Down

0 comments on commit 4ef6044

Please sign in to comment.