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
createTag broken in version >= 4.0.6 for tags longer than 2 characters #5516
Comments
The issue persists in version 4.0.7. |
Can you create a jsbin that reproduces this issue? We don't have this issue in the docs, which makes me suspicious: https://select2.org/tagging |
Sorry for not providing a JS Bin in the first place. Here it is: https://jsbin.com/yunayiwodo/edit?html,console,output The problem occurs when you try to type in tags longer than 2 characters. |
same problem |
the same problem and the same lack of solution |
same problem |
i install version 4.0.0 to solve problem. |
same problem |
Please see #5485 (comment) for why this still remains unsolved. We have a jsbin for this, which is why we know the issue exists. Unfortunately we can't reproduce this issue in our current test suite, which explains why it wasn't caught earlier. If someone is willing to donate some of their time to making a unit test that reproduces this issue, I'll willing to donate some time to fixing whatever is causing the issue. |
This problem is related to jquery-3.4.1.js |
@kevin-brown Since this is a severe and widespread issue, can you consider merging the fix now? Several months have already passed. The tests can be added later. |
Removing this no longer breaks a unit test, and having it in here results in the select box receiving focus unexpectedly. It's not clear what problem this was solving, since it was manually applied from a series of pull requests. It claims to be fixing an issue that was specific to IE11, and I'm willing to re-introduce that bug because there doesn't appear to be a regression test for it, and it's breaking some critical use cases. The goal should be to focus the search box if it would have normally lost focus when the selection was updated. Fixes #5485 Fixes #5516 Closes #5550
@kevin-brown This one shoud be reopened. |
This should have been fixed in 4.0.8 with and additional level of edge case smashing in 4.1.0-beta.1 If you are still seeing this issue, please open a new ticket with additional details. |
I tested this code on 4.0.6 and 4.0.6 (only the releases and not the RC) and works well on 4.0.5. My usage of select2 is very simple:
the create tag function is fired for the first 2 characters of the tag and then stops for the rest.
The text was updated successfully, but these errors were encountered: