Skip to content

Commit

Permalink
Fix #3166: Dialog remove body hidden on blockScroll close (#3167)
Browse files Browse the repository at this point in the history
  • Loading branch information
melloware committed Aug 18, 2022
1 parent 2e75910 commit ae93645
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions components/lib/dialog/Dialog.js
Expand Up @@ -32,6 +32,7 @@ export const Dialog = React.forwardRef((props, ref) => {
const [bindDocumentDragEndListener, unbindDocumentDragEndListener] = useEventListener({ type: 'mouseup', target: () => window.document, listener: (event) => onDragEnd(event) });

const onClose = (event) => {
DomHandler.removeClass(document.body, 'p-overflow-hidden');
props.onHide();
event.preventDefault();
}
Expand Down

0 comments on commit ae93645

Please sign in to comment.