diff --git a/src/BootstrapBlazor/BootstrapBlazor.csproj b/src/BootstrapBlazor/BootstrapBlazor.csproj index 8f8c3bdfd28..05fb07de626 100644 --- a/src/BootstrapBlazor/BootstrapBlazor.csproj +++ b/src/BootstrapBlazor/BootstrapBlazor.csproj @@ -1,7 +1,7 @@  - 10.4.2-beta01 + 10.4.2-beta02 diff --git a/src/BootstrapBlazor/wwwroot/modules/utility.js b/src/BootstrapBlazor/wwwroot/modules/utility.js index 025e6eda04a..fb6e43e3427 100644 --- a/src/BootstrapBlazor/wwwroot/modules/utility.js +++ b/src/BootstrapBlazor/wwwroot/modules/utility.js @@ -1,4 +1,4 @@ -import EventHandler from "./event-handler.js" +import EventHandler from "./event-handler.js" const vibrate = () => { if ('vibrate' in window.navigator) { @@ -420,14 +420,14 @@ const drag = (element, start, move, end) => { element.addEventListener('touchstart', handleDragStart) } -const getDescribedElement = (element, selector = 'aria-describedby') => { +const getDescribedElement = (element, selector = 'aria-describedby', all = false) => { if (isElement(element)) { let id = element.getAttribute(selector) if (id) { if (id.indexOf('.') === -1) { id = `#${id}` } - return document.querySelector(id) + return all ? document.querySelectorAll(id) : document.querySelector(id) } } return null