Select2 dropdown allow new values by user when user types

前端 未结 3 1287
抹茶落季
抹茶落季 2021-02-09 14:44

The select2 component can be configured to accept new values, as ask in Select2 dropdown but allow new values by user?

And you can see it at: http://jsfiddle.net/pHSdP/

3条回答
  •  执念已碎
    2021-02-09 15:36

    Adding attribute selectOnBlur: true, seems to work for me.

    Edit: glad it worked for you as well!

提交回复
热议问题