diff --git a/src/assets/scripts/Pinecone/Dialog/index.js b/src/assets/scripts/Pinecone/Dialog/index.js index 82053210..90c0a59f 100644 --- a/src/assets/scripts/Pinecone/Dialog/index.js +++ b/src/assets/scripts/Pinecone/Dialog/index.js @@ -57,7 +57,7 @@ class Dialog { * @param {Function} callback */ invokeDialog( callback ) { - const elems = document.querySelectorAll( 'body > *' ); + const elems = document.querySelectorAll( 'body > *:not([aria-live])' ); Array.prototype.forEach.call( elems, ( elem ) => { elem.setAttribute( 'inert', 'inert' ); } ); diff --git a/src/assets/scripts/Pinecone/FilterList/index.js b/src/assets/scripts/Pinecone/FilterList/index.js index 45cf7a09..2dc521cc 100644 --- a/src/assets/scripts/Pinecone/FilterList/index.js +++ b/src/assets/scripts/Pinecone/FilterList/index.js @@ -31,7 +31,7 @@ class FilterList { handleOverlay( event ) { if ( ! event.target.closest( this.config.showCtrlSelector ) && ! event.target.closest( this.config.hideCtrlSelector ) ) return false; - const elems = document.querySelectorAll( 'body > *' ); + const elems = document.querySelectorAll( 'body > *:not([aria-live])' ); if ( event.target.closest( this.config.showCtrlSelector ) ) { document.body.classList.add( 'has-modal' );