-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
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
Similar Error #3016 - 'allowClear' with 'data-placeholder' #3917
Comments
I've encountered the same problem and have used the following mod to fix it, until the next release comes out
|
I created a pull request #4776 that uses @grandehombre fix. It uses the single quotes required by the project's coding style and leaves out the temporary fix comments. |
The same BUG with latest version 4.0.3. Select (no ajax) with optgroups, call with data-allow-clear="true", or by option { allowClear: true } and placeholder="xxx", return console errot:
EDIT: I have found resolve for this problem: after migration 3.5.2 > 4.0, "placeholder" MUST BE simply replaced with "data-placeholder". |
@santaclaus21 if #4776 helps you, feel free to take over the pull request by finishing the pull request tasks. I'll probably never get to making the unit tests that were requested. |
I can't seem to replicate the console error message in 4.0.6-rc.1; see http://jsbin.com/futefuhele/edit?html,js,console,output. Does this error only occur with an ajax data source? That being said, I do notice that |
At any rate, this is a duplicate of #3497 - please continue the conversation in that thread. |
Hey,
I was reading about error #3016 and realized the same error occurs when there is a 'data-placeholder' attribute on the element without the parameter in the call of select2, as shown below:
No errors
Will generate an error
The text was updated successfully, but these errors were encountered: