-
-
Notifications
You must be signed in to change notification settings - Fork 6.2k
Closed
Description
Steps to reproduce the issue
- Init select2 on select[multiple] with tags: true, tokenSeparators: [" "]
- Paste a text with some spaces.
- All tags except the last one are added directly.
- The text of the final tag is entered in the text field. (But the input field width is much too small!)
- Press enter.
You can actually test this behavior on the examples page: https://select2.org/tagging#automatic-tokenization-into-tags by pasting this text: red green blue
Expected behavior and actual behavior
Actual: The dropdown opens without any "term" as if the input field was empty.
Expected: I was expecting that it would open the dropdown as if I had entered the text of the final tag.
Environment
Browsers
- Google Chrome
- Mozilla Firefox
- Internet Explorer
Operating System
- Windows
- Mac OS X
- Linux
- Mobile
Libraries
- jQuery version: 1.12.4
- Select2 version: 4.0.4
Isolating the problem
- This bug happens on the examples page
- The bug happens consistently across all tested browsers
- This bug happens when using Select2 without other plugins
- I can reproduce this bug in a jsbin
Reactions are currently unavailable