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

Uncaught TypeError: Cannot read properties of null (reading 'classList') #34

Closed
faxunil opened this issue Oct 28, 2021 · 3 comments
Closed

Comments

@faxunil
Copy link

faxunil commented Oct 28, 2021

Hi!

I couldn't exactly investigate when this problem is tiggered
in the error this is marked:
t.onblur=function(){V.value.focused.split(" ").forEach((function(t){A.value.classList.remove(t)}))},t.onfocus=function(){V.value.focused.split(" ").forEach((function(t){A.value.classList.add(t)}))}})),j.value=!0},q=function(){M.value.off(),M.value.destroy(),M.value=null},R=function(t,e){j.value=!1,q(),H()};return (0,vue__WEBPACK_IMPORTED_MODULE_0__.onMounted)(H

Im using this for a time slider, i convert the time to seconds.

Any Idea please?

@hyvyys
Copy link

hyvyys commented Nov 27, 2021

I get the following error but only when deploying a lib I made with this slider onto the target site:

Uncaught TypeError: a is undefined
    _mouseCapture https://example.com/cache/v_167_a1ba98e327a5397b4d5b2b5a121a007c.js:1572
    e.widget/</h[t]</< https://example.com/cache/v_167_a1ba98e327a5397b4d5b2b5a121a007c.js:1572
    _mouseDown https://example.com/cache/v_167_a1ba98e327a5397b4d5b2b5a121a007c.js:1572
    e.widget/</h[t]</< https://example.com/cache/v_167_a1ba98e327a5397b4d5b2b5a121a007c.js:1572
    _mouseInit https://example.com/cache/v_167_a1ba98e327a5397b4d5b2b5a121a007c.js:1572
    dispatch https://example.com/cache/v_167_a1ba98e327a5397b4d5b2b5a121a007c.js:3
    handle https://example.com/cache/v_167_a1ba98e327a5397b4d5b2b5a121a007c.js:3
v_167_a1ba98

@adamberecz
Copy link
Collaborator

Closing in absence of reproducible example.

@J-Sek
Copy link
Contributor

J-Sek commented Apr 2, 2022

  1. Open the page and click on the handle
  2. Click browser [back] button

This means the component is going to unload itself when one of the parts has active focus.

image

J-Sek added a commit to J-Sek/slider that referenced this issue Apr 2, 2022
adamberecz added a commit that referenced this issue Dec 20, 2022
fix: avoid error when unloading component #34
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

4 participants