Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

click event error #3

Open
powercording opened this issue Nov 13, 2023 · 2 comments
Open

click event error #3

powercording opened this issue Nov 13, 2023 · 2 comments

Comments

@powercording
Copy link

powercording commented Nov 13, 2023

selection.model.js:19 Uncaught TypeError: Cannot read properties of undefined (reading 'dataset')
    at SelectionModel.set_start (selection.model.js:19:1)
    at sqv.onmousedown (selection.model.js:56:1)

in next js 13.4 app (page router)
when I click sequence then this error shows in console.
you can also see this error msg at the documentation web site - event tap and click it.

@mb925
Copy link
Collaborator

mb925 commented Nov 14, 2023

Hello,
I cant reproduce the issue. Can you please send more details?

What I did was:

but nothing appears in the console.

@freehour
Copy link

I have the same issue using Chrome, it works in Firefox. It happens on left-click. This is the relevant code section where the error occurs:

id = document.getElementById(element.dataset.resId);

It seems e.path is undefined and therefore falsly executing the else block of the condition. I'm unsure what e.path should be, however using element = e.currentTarget should work in Chrome.

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

No branches or pull requests

3 participants