Skip to content

Commit

Permalink
Fix #3184: Dialog responsive breakpoints restored (#3185)
Browse files Browse the repository at this point in the history
  • Loading branch information
melloware authored Aug 25, 2022
1 parent a3a319e commit dc63ed1
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 dc63ed1

Please sign in to comment.