Fix linting errors
This commit is contained in:
parent
89bbf005c3
commit
c924f578e5
3 changed files with 16 additions and 2 deletions
|
@ -414,7 +414,17 @@ let BookWyrm = new class {
|
|||
}
|
||||
|
||||
function handleFocusTrap(event) {
|
||||
const focusableEls = event.currentTarget.querySelectorAll('a[href]:not([disabled]), button:not([disabled]), textarea:not([disabled]), input[type="text"]:not([disabled]), input[type="radio"]:not([disabled]), input[type="checkbox"]:not([disabled]), select:not([disabled])');
|
||||
const focusableEls = event.currentTarget.querySelectorAll(
|
||||
[
|
||||
'a[href]:not([disabled])',
|
||||
'button:not([disabled])',
|
||||
'textarea:not([disabled])',
|
||||
'input[type="text"]:not([disabled])',
|
||||
'input[type="radio"]:not([disabled])',
|
||||
'input[type="checkbox"]:not([disabled])',
|
||||
'select:not([disabled])'
|
||||
].join(',')
|
||||
);
|
||||
const firstFocusableEl = focusableEls[0];
|
||||
const lastFocusableEl = focusableEls[focusableEls.length - 1];
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue