Skip to content

Commit

Permalink
[fix]: dialog p-overflow-hidden wasn't removed from body on dialog (#…
Browse files Browse the repository at this point in the history
…2982)

unmount because of opposite if condition.
  • Loading branch information
seanick39 authored Jun 9, 2022
1 parent 5eddf9a commit d6359de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/lib/dialog/Dialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ export const Dialog = React.forwardRef((props, ref) => {

if (props.modal) {
let hasBlockScroll = document.primeDialogParams && document.primeDialogParams.some(param => param.hasBlockScroll);
if (!hasBlockScroll) {
if (hasBlockScroll) {
DomHandler.removeClass(document.body, 'p-overflow-hidden');
}
}
Expand Down

0 comments on commit d6359de

Please sign in to comment.