Skip to content

Adds a guard clause for _inputRef#38

Open
jwoertink wants to merge 1 commit intossleptsov:mainfrom
jwoertink:issues/34
Open

Adds a guard clause for _inputRef#38
jwoertink wants to merge 1 commit intossleptsov:mainfrom
jwoertink:issues/34

Conversation

@jwoertink
Copy link
Copy Markdown

@jwoertink jwoertink commented Dec 14, 2022

Fixes #34

It seems in some browsers, this requestAnimationFrame will execute before the ref exists which throws errors around calling .focus() on undefined.

image

@KonnorRogers
Copy link
Copy Markdown

Fixed here: KonnorRogers/konnors-ninja-keys#9

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.

Sometimes there's no value loaded when an animationFrame is requested

2 participants