@innovastudio/contentbuilder 1.5.150 → 1.5.151
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
@@ -83847,6 +83847,7 @@ class Dictation {
|
|
83847
83847
|
if (localStorage.getItem('_dictation') !== null) {
|
83848
83848
|
if (localStorage.getItem('_dictation') === '1') {
|
83849
83849
|
this.modalCommand.classList.add('active');
|
83850
|
+
this.modalCommand.setAttribute('aria-hidden', 'false');
|
83850
83851
|
this.doOpen();
|
83851
83852
|
if (localStorage.getItem('_mic') !== null) {
|
83852
83853
|
if (localStorage.getItem('_mic') === '1') {
|
@@ -84095,7 +84096,11 @@ class Dictation {
|
|
84095
84096
|
});
|
84096
84097
|
const btnClose = this.modalCommand.querySelector('.is-modal-close');
|
84097
84098
|
btnClose.addEventListener('click', () => {
|
84099
|
+
if (document.activeElement && this.modalCommand.contains(document.activeElement)) {
|
84100
|
+
document.activeElement.blur();
|
84101
|
+
}
|
84098
84102
|
this.modalCommand.classList.remove('active');
|
84103
|
+
this.modalCommand.setAttribute('aria-hidden', 'true');
|
84099
84104
|
this.stopDictation();
|
84100
84105
|
localStorage.setItem('_dictation', '0');
|
84101
84106
|
});
|