diff --git a/src/BootstrapBlazor/Components/Button/PopConfirmButton.razor.js b/src/BootstrapBlazor/Components/Button/PopConfirmButton.razor.js index cc6527c27ab..a361d3a9ac3 100644 --- a/src/BootstrapBlazor/Components/Button/PopConfirmButton.razor.js +++ b/src/BootstrapBlazor/Components/Button/PopConfirmButton.razor.js @@ -31,9 +31,8 @@ export function init(id) { confirm.inserted = () => { const popover = getDescribedElement(el) const children = confirm.container.children - const len = children.length - for (let i = 0; i < len; i++) { - popover.appendChild(children[i]) + while (children.length > 0) { + popover.appendChild(children[0]) } } confirm.hide = () => {