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

toggleClass throws "is not a function" #360

Closed
typeoneerror opened this issue Feb 12, 2018 · 2 comments
Closed

toggleClass throws "is not a function" #360

typeoneerror opened this issue Feb 12, 2018 · 2 comments

Comments

@typeoneerror
Copy link

Version of Dropkick:

Version on http://dropkickjs.com/

Expected Behavior

Multi-select should select items.

Actual Behavior

Doesn't select, throws errors.

Uncaught TypeError: [((intermediate value)(intermediate value)(intermediate value) + "Class")] is not a function
    at Object.toggleClass (VM550 dropkick.js:1)
    at e.value (VM550 dropkick.js:1)
    at e.value (VM550 dropkick.js:1)
    at e.value (VM550 dropkick.js:1)

Steps To Reproduce:

  1. Click any item in multi-select example

JSBin / Example repo / Failing test:

Pretty sure https://github.com/Robdel12/DropKick/blob/master/src/utils.js#L24 should be called on this.

@typeoneerror
Copy link
Author

Failing test and experimental fix: #361

@Robdel12
Copy link
Owner

This was closed with #361. Thanks @typeoneerror for the report AND the fix! :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants