Skip to content

fix: issue/39 Uncaught TypeError: Cannot read property 'nodeName' of …#65

Open
futurist wants to merge 4 commits intooyyd:masterfrom
futurist:master
Open

fix: issue/39 Uncaught TypeError: Cannot read property 'nodeName' of …#65
futurist wants to merge 4 commits intooyyd:masterfrom
futurist:master

Conversation

@futurist
Copy link
Copy Markdown

@futurist futurist commented Dec 5, 2021

this PR should fix: #39

The logic retuned:

  1. When firstElementChild is empty, the returned value should be checked against null
  2. When it's not INPUT or TEXTAREA, then fallback to range.getBoundingClientRect

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.

Uncaught TypeError: Cannot read property 'nodeName' of null

1 participant