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

data-allow-clear and data-placeholder not working #5133

Closed
projct1 opened this issue Nov 16, 2017 · 6 comments
Closed

data-allow-clear and data-placeholder not working #5133

projct1 opened this issue Nov 16, 2017 · 6 comments

Comments

@projct1
Copy link

projct1 commented Nov 16, 2017

  • Version 4.0.6-rc.0

Description

When i try to use data-option notation, its not working:

<select data-allow-clear="true" data-placeholder="Type ID or name" name="bar_id" class="select2">
</select>
@alexweissman
Copy link
Contributor

Please create a minimal, complete, and verifiable example using our JSBin template and we can re-open this issue.

@projct1
Copy link
Author

projct1 commented Nov 19, 2017

https://jsfiddle.net/rorc/sLkpy3hm/
Here no placeholder, no clear icon.

@alexweissman
Copy link
Contributor

I've confirmed this issue with http://jsbin.com/rirefilede/1/edit?html,js,console,output

@nphilipp
Copy link

NB: this works for me with 4.0.5: https://jsfiddle.net/nilsph/uL79f8fn/5/
but doesn't with 4.0.6-rc.1: https://jsfiddle.net/nilsph/uL79f8fn/7/

@frdteknikelektro
Copy link

Nice @nphilipp ,
This should be fixed asap

@pedrofurtado
Copy link
Contributor

Canonical issue -> #5320

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

5 participants