chore: update interactive role checks in OsuCursor component
This commit is contained in:
@@ -25,7 +25,7 @@
|
|||||||
const computed = getComputedStyle(el);
|
const computed = getComputedStyle(el);
|
||||||
if (
|
if (
|
||||||
['button', 'a', 'input', 'select', 'textarea', 'label', 'option'].includes(tag) ||
|
['button', 'a', 'input', 'select', 'textarea', 'label', 'option'].includes(tag) ||
|
||||||
(role && ['button', 'link', 'checkbox', 'combobox'].includes(role)) ||
|
(role && ['button', 'link', 'checkbox', 'combobox', 'menuitem', 'option'].includes(role)) ||
|
||||||
computed.cursor === 'pointer'
|
computed.cursor === 'pointer'
|
||||||
) {
|
) {
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Reference in New Issue
Block a user