fluentui
fluentui copied to clipboard
Uncaught TypeError: element.getAttribute is not a function from focus.ts
Bug Report
- Package version(s): 1.9.0
- Browser and OS versions: Any
Describe the issue:
function isElementTabbable(element: HTMLElement) of focus.ts will raise error "Uncaught TypeError: element.getAttribute is not a function" when element is document. This is caused by the logic error in focus.ts at line 177 - 179.
Actual behavior:
When element is document, function isElementTabbable raise error 'Uncaught TypeError: element.getAttribute is not a function'.
Expected behavior:
When element is document, function isElementTabbable runs correctly.
Fixed by #1099