messageBox: keep children specified via appendChild in buttons
This commit is contained in:
parent
5b9fd4454b
commit
ff9e37ec5f
|
@ -113,9 +113,10 @@ function messageBox({
|
|||
buttons.map((content, buttonIndex) => content &&
|
||||
$create('button', Object.assign({
|
||||
buttonIndex,
|
||||
textContent: typeof content === 'object' ? '' : content,
|
||||
onclick: messageBox.listeners.button,
|
||||
}, typeof content === 'object' && content)))),
|
||||
}, typeof content === 'object' ? content : {
|
||||
textContent: content,
|
||||
})))),
|
||||
]),
|
||||
]);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user