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

Allow chaining for .select2('readonly', ...) #2095

Merged
merged 1 commit into from
Feb 3, 2014

Conversation

mkurz
Copy link
Contributor

@mkurz mkurz commented Feb 3, 2014

.select2('readonly', ...) returns a boolean, which is wrong/makes no sense and makes chaining impossible, see https://jsfiddle.net/u8m62/.

This was fixed for enable in version 3.4.5 already, see sommit ivaynberg@a6c5302 and bug #1536 (last sentence of the bug report).

This should be fixed for 'readonly' now as well!

kevin-brown added a commit that referenced this pull request Feb 3, 2014
Allow chaining for .select2('readonly', ...)
@kevin-brown kevin-brown merged commit 3c28c35 into select2:master Feb 3, 2014
@kevin-brown
Copy link
Member

Thanks!

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

Successfully merging this pull request may close these issues.

2 participants