Skip to content

Not working on YouTube comment input area #65

Description

@slishnevsky

I am using this library to detect mouse cursor position based on the current caret position in my Chrome extension that I am using to correct grammar and translate entered text, to display a progress animation next to the caret.

I noticed it's not working on YouTube comment input area.

It fails on this line 78:

div.textContent = element.value.substring(0, position);

throwing an error:

Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'substring')

When inspected, the debugger shows that element.value is undefined.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions