PolymerElements/paper-radio-group

When pressing Esc, TypeError is thrown

Closed this issue · 2 comments

Description

When pressing Esc key, the error is thrown:

Uncaught TypeError: Cannot read property 'blur' of undefined
    at HTMLElement._onEscKey (iron-menu-behavior.html:344)
    at HTMLElement._triggerKeyHandler (iron-a11y-keys-behavior.html:489)
    at HTMLElement._onKeyBindingEvent (iron-a11y-keys-behavior.html:473)

In Firefox is looks like this:

TypeError: this.focusedItem is undefined

Expected outcome

No error should be thrown

Actual outcome

Error is thrown each time Esc is being pressed.
Pressing one of arrow keys seems to prevent further Esc hits to cause this error.

Steps to reproduce

  1. Go to https://beta.webcomponents.org/element/PolymerElements/paper-radio-group/demo/demo/index.html
  2. Focus one of the paper-radio-group
  3. Press Esc

Browsers Affected

  • Chrome
  • Firefox
  • Safari 9

I think that's a problem with the catalog, where 'esc' is trying to close the Demo overlay, and not a bug with paper-radio-group. Here's a jsbin where esc does nothing (nor throws an error): http://output.jsbin.com/nehiraj

Tentatively closing this, but cc'ing @samuelli to take a look at the catalog code

Polymer 1.... I am hitting this error also in my own app with iron-menu-behavior and paper-radio-group. There is also a overlay involved. How was this resolved?