BioComputingUP / ProSeqViewer

Visualize sequence and multiple sequence alignment (MSA)
GNU General Public License v2.0
14 stars 2 forks source link

click event error #3

Open powercording opened 12 months ago

powercording commented 12 months ago
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 commented 12 months ago

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

What I did was:

but nothing appears in the console.

freehour commented 7 months ago

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: https://github.com/BioComputingUP/ProSeqViewer/blob/3bcadd92532207260ff30bc992c4b36676d53910/src/lib/selection.model.ts#L31

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.