fluentui icon indicating copy to clipboard operation
fluentui copied to clipboard

Uncaught TypeError: element.getAttribute is not a function from focus.ts

Open luhu opened this issue 9 years ago • 1 comments

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.

luhu avatar Feb 23 '17 13:02 luhu

Fixed by #1099

mikewheaton avatar Feb 23 '17 21:02 mikewheaton