How to disable creating new tags with select2 v4.0?

后端 未结 4 1935
借酒劲吻你
借酒劲吻你 2020-12-30 23:52

I\'ve been trying out the new Select2 v4.0 which has a lot of improvements. I\'m mainly interested in the tags feature. I want to be able to search for tags via

4条回答
  •  Happy的楠姐
    2020-12-31 00:29

    I am not sure if I should add the following in here but as I was searching for the same issue google pointed me to this question. However I use an older version 3.x and this is how to achieve the same scenario for the 3.x versions.

    Tested on version 3.5

    createSearchChoice: function(params) {
        return undefined;
    }
    

提交回复
热议问题