We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
According to docs, If you declare a function in the options change, open and close, the value of this will be the Dropkick object.
It's not working for the change option:
jQuery('.my-select').dropkick({ change: function() { console.log( this ); //object console.log( this.data ); //undefined }, open: function() { console.log( this ); //the dropkick object console.log( this.data ); //works } });
This is a workaround:
If you declare the first argument of you change function, it will contain the reference to the Dropkick object:
jQuery('.my-select').dropkick({ change: function(dk) { console.log( dk ); //the dropkick object console.log( dk.data ); //works } });
The text was updated successfully, but these errors were encountered:
Issue #222
b4fdf57
Must've forgotten to update that call in the earlier days of switching to use this.
this
Thanks for bringing it to our attention; fixed!
Sorry, something went wrong.
Anytime :)
No branches or pull requests
According to docs, If you declare a function in the options change, open and close, the value of this will be the Dropkick object.
It's not working for the change option:
This is a workaround:
If you declare the first argument of you change function, it will contain the reference to the Dropkick object:
The text was updated successfully, but these errors were encountered: