BoostNote-Legacy icon indicating copy to clipboard operation
BoostNote-Legacy copied to clipboard

Uncaught TypeError: Cannot read property 'className' of null

Open asmsuechan opened this issue 9 years ago • 7 comments

This event listener causes tiny errors. https://github.com/BoostIO/Boostnote/blob/6a3062709c7445e7c8f6438d544f8f408d3615de/browser/main/index.js#L26:L34

image

asmsuechan avatar Oct 12 '17 15:10 asmsuechan

I am willing to take this on. On it!

adrichey avatar Oct 12 '17 15:10 adrichey

@adrichey Yes, please :ok_woman:

asmsuechan avatar Oct 12 '17 15:10 asmsuechan

Here's one of them. Actually, there are some other cases... https://gyazo.com/92b48aad033309fab22decd9304782a2

asmsuechan avatar Oct 12 '17 15:10 asmsuechan

I think I have sorted it out. It occurs when the element you are clicking on doesn't have an offsetParent in which to check the class. Please see: https://github.com/BoostIO/Boostnote/pull/968

adrichey avatar Oct 12 '17 16:10 adrichey

Should this be closed as #968 was merged?

alexrussell avatar Oct 13 '17 19:10 alexrussell

I would assume it can be closed. @asmsuechan?

adrichey avatar Oct 13 '17 20:10 adrichey

Thank you for your cooperation!

asmsuechan avatar Oct 13 '17 23:10 asmsuechan