diff --git a/src/BootstrapBlazor/BootstrapBlazor.csproj b/src/BootstrapBlazor/BootstrapBlazor.csproj index 45749c54d2b..1e45bef2f22 100644 --- a/src/BootstrapBlazor/BootstrapBlazor.csproj +++ b/src/BootstrapBlazor/BootstrapBlazor.csproj @@ -1,7 +1,7 @@ - 8.7.3-beta01 + 8.7.3-beta02 diff --git a/src/BootstrapBlazor/Components/Print/PrintButton.razor.js b/src/BootstrapBlazor/Components/Print/PrintButton.razor.js index 111e2977969..8cdedeb0ee3 100644 --- a/src/BootstrapBlazor/Components/Print/PrintButton.razor.js +++ b/src/BootstrapBlazor/Components/Print/PrintButton.razor.js @@ -40,21 +40,25 @@ const print = el => { body.appendChild(dialog) // assign value - dialog.querySelectorAll("input").forEach(ele => { - const id = ele.getAttribute('id') - const vEl = document.getElementById(id) - if (vEl) { - if (ele.getAttribute('type') === 'checkbox') { - const v1 = vEl.checked - if (v1 === true) { - ele.setAttribute('checked', 'checked') + const elements = ["input", "textarea"]; + elements.forEach(tag => { + console.log(tag); + dialog.querySelectorAll(tag).forEach(ele => { + const id = ele.getAttribute('id') + const vEl = document.getElementById(id) + if (vEl) { + if (ele.getAttribute('type') === 'checkbox') { + const v1 = vEl.checked + if (v1 === true) { + ele.setAttribute('checked', 'checked') + } + } + else { + ele.value = vEl.value } } - else { - ele.value = vEl.value - } - } - }) + }); + }); const handler = setTimeout(() => { clearTimeout(handler)