Merge pull request #4016 from bgoscinski/patch-1
Don't write directly to classList in FocusTrap.jspull/3999/head
commit
20f559163a
|
@ -69,7 +69,7 @@ function createHiddenFocusableElements(el, binding) {
|
||||||
const createFocusableElement = (onFocus) => {
|
const createFocusableElement = (onFocus) => {
|
||||||
const element = document.createElement('span');
|
const element = document.createElement('span');
|
||||||
|
|
||||||
element.classList = 'p-hidden-accessible p-hidden-focusable';
|
element.classList.value = 'p-hidden-accessible p-hidden-focusable';
|
||||||
element.tabIndex = tabIndex;
|
element.tabIndex = tabIndex;
|
||||||
element.setAttribute('aria-hidden', 'true');
|
element.setAttribute('aria-hidden', 'true');
|
||||||
element.setAttribute('role', 'presentation');
|
element.setAttribute('role', 'presentation');
|
||||||
|
|
Loading…
Reference in New Issue