Skip to content

Conversation

@cigaar
Copy link

@cigaar cigaar commented Oct 23, 2019

Will throw a TypeError exception "Cannot read property 'focus' of undefined" if none of the buttons has promptTrigger, because in that case i = -1 by the time we get to line this.refs.buttons.children[i].focus();.

Will throw a TypeError exception "Cannot read property 'focus' of undefined" if none of the buttons has promptTrigger, because in that case i = -1 by the time we get to line this.refs.buttons.children[i].focus();.
@hperrin
Copy link
Member

hperrin commented Apr 6, 2020

Nice catch! Does this have an associated issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants