Skip to content

Commit e0d5f3d

Browse files
committed
Disable pointer events on a closed modal
1 parent 54ad32e commit e0d5f3d

File tree

1 file changed

+3
-0
lines changed
  • packages/compass-components/src/components/modals

1 file changed

+3
-0
lines changed

packages/compass-components/src/components/modals/modal.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ const styles = css({
1111
// content and this messes up the autocompleter within the modal. So we clear
1212
// the transform here.
1313
transform: 'none',
14+
'&:not([open])': {
15+
pointerEvents: 'none',
16+
},
1417
});
1518

1619
const fullScreenStyles = css({

0 commit comments

Comments
 (0)