Skip to content

Commit 3e32f0a

Browse files
committed
fix: Prevent padding on setTimeout on first change
Signed-off-by: Akshat Patel <[email protected]>
1 parent 8b1dff6 commit 3e32f0a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/dialog/dialog.directive.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ export class DialogDirective implements OnInit, OnDestroy, OnChanges {
155155
if (changes.isOpen) {
156156
if (changes.isOpen.currentValue) {
157157
this.open();
158-
} else {
158+
} else if (!changes.isOpen.firstChange) {
159159
this.close({
160160
reason: CloseReasons.programmatic
161161
});

0 commit comments

Comments
 (0)