Security Level: Jimmy
steps to reproduce
- load the attached zul
- type "aa" (a new item) quickly and press enter key before the popup shows up
- the Chosenbox doesn't add the new item and doesn't highlight the "create new item" option, so pressing the enter key takes no effect.
see <script> in the attached zul
- in _doEnterPressed(), when pressing an enter before the popup shows, it will show the popup without selecting (highlighting) any item. So pressing enter with no selected item doesn't create any new item.
- In JIRA issue Labels field, you need to wait for a popup open after typing an unexisting item to create a new item. But there is another design, that pressing enter key creates a new item immediately, please refer to https://select2.github.io/examples.html#tags