We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 83e409b commit 94b9edbCopy full SHA for 94b9edb
src/js/dlg/message-box.js
@@ -169,10 +169,7 @@ messageBox.show = ({
169
$create('i.i-close')),
170
$create(`#${id}-contents`, tHTML(contents)),
171
$create(`#${id}-buttons`, buttons.filter(Boolean).map((btn, buttonIndex) => {
172
- if (btn.localName !== 'button') {
173
- const obj = typeof btn === 'object' && btn;
174
- btn = $create('button', obj, (!obj || btn instanceof Node) && btn);
175
- }
+ if (btn.localName !== 'button') btn = $create('button', btn);
176
btn.buttonIndex = buttonIndex;
177
btn.onclick ??= messageBox.listeners.button;
178
return btn;
0 commit comments