Skip to content

Commit ce8eecd

Browse files
authored
fix(PopConfirmButton): missing popup header when enable title (#5625)
1 parent 9d9e8e1 commit ce8eecd

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/BootstrapBlazor/Components/Button/PopConfirmButton.razor.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,8 @@ export function init(id) {
3131
confirm.inserted = () => {
3232
const popover = getDescribedElement(el)
3333
const children = confirm.container.children
34-
const len = children.length
35-
for (let i = 0; i < len; i++) {
36-
popover.appendChild(children[i])
34+
while (children.length > 0) {
35+
popover.appendChild(children[0])
3736
}
3837
}
3938
confirm.hide = () => {

0 commit comments

Comments
 (0)