Skip to content

Commit

Permalink
Fix primefaces#3184: Dialog responsive breakpoints restored
Browse files Browse the repository at this point in the history
  • Loading branch information
melloware committed Aug 25, 2022
1 parent a3a319e commit a801b95
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions components/lib/dialog/Dialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -347,11 +347,14 @@ export const Dialog = React.forwardRef((props, ref) => {
};

useMountEffect(() => {
const unqiueId = UniqueComponentId();
if (!idState) {
setIdState(UniqueComponentId());
setIdState(unqiueId);
}

attributeSelector.current = UniqueComponentId();
if (!attributeSelector.current) {
attributeSelector.current = unqiueId;
}

if (props.visible) {
setMaskVisibleState(true);
Expand Down

0 comments on commit a801b95

Please sign in to comment.