Skip to content

Commit 0b1bd0a

Browse files
feat(dialog-wrapper): implement conditional dismissHelper buttons
1 parent dfd863a commit 0b1bd0a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/dialog/src/DialogWrapper.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ export class DialogWrapper extends DialogBase {
125125
}
126126

127127
return html`
128+
${this.dismissHelper}
128129
<sp-dialog
129130
?dismissable=${this.dismissable}
130131
dismiss-label=${this.dismissLabel}
@@ -199,6 +200,7 @@ export class DialogWrapper extends DialogBase {
199200
`
200201
: nothing}
201202
</sp-dialog>
203+
${!this.dismissable ? this.dismissHelper : nothing}
202204
`;
203205
}
204206
}

0 commit comments

Comments
 (0)