8000 e.target.className.includes is not a function · Issue #17 · versoly/taos · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

e.target.className.includes is not a function #17

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

Open
kuvallini opened this issue Jan 15, 2025 · 1 comment
Open

e.target.className.includes is not a function #17

kuvallini opened this issue Jan 15, 2025 · 1 comment

Comments

@kuvallini
Copy link

When using Laravel Livewire sometimes in some actions returns this error. The solution:

e.target.classList.contains instead of e.target.className.includes. For example:

    if (target.className && !target.classList.contains('taos-init') && target.classList.contains('taos:')) {
      elements.push(initElement(target))
    }
@volkandkaya
Copy link
Collaborator

Good catch will figure out why i used both and fix the issue.

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

2 participants
0