remove duplicate 'disabled' check in tabbable

This commit is contained in:
konnorrogers
2024-01-10 15:35:53 -05:00
parent 9fc31fa1e4
commit c0d0e4c0fd

View File

@@ -80,11 +80,6 @@ function isTabbable(el: HTMLElement) {
return false;
}
// Elements with a disabled attribute are not tabbable
if (el.hasAttribute('disabled')) {
return false;
}
// Radios without a checked attribute are not tabbable
if (tag === 'input' && el.getAttribute('type') === 'radio' && !el.hasAttribute('checked')) {
return false;