We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b3466bc commit 086dfe9Copy full SHA for 086dfe9
src/dialog/dialog.ts
@@ -57,6 +57,7 @@ export default class Dialog extends SuperComponent {
57
class: [...cls, `${classPrefix}__button--${key}`],
58
externalClass: [...externalCls, `${prefix}-class-${key}`],
59
variant: rect.buttonVariant,
60
+ openType: '',
61
};
62
63
if (key === 'cancel' && rect.buttonVariant === 'base') {
@@ -95,7 +96,7 @@ export default class Dialog extends SuperComponent {
95
96
}
97
98
- const hasOpenType = 'openType' in button;
99
+ const hasOpenType = !!button.openType;
100
if (!hasOpenType && ['confirm', 'cancel'].includes(type)) {
101
this[toCamel(`on-${type}`)]?.(type);
102
0 commit comments