@testing-library/user-event
Version:
Fire events the same way the user does
15 lines (12 loc) • 356 B
JavaScript
const FOCUSABLE_SELECTOR = [
'input:not([type=hidden]):not([disabled])',
'button:not([disabled])',
'select:not([disabled])',
'textarea:not([disabled])',
'[contenteditable=""]',
'[contenteditable="true"]',
'a[href]',
'[tabindex]:not([disabled])'
].join(', ');
exports.FOCUSABLE_SELECTOR = FOCUSABLE_SELECTOR;
;