Typeahead plugin and Bootstrap Tags input plugin Meteor not working

后端 未结 5 1257
太阳男子
太阳男子 2021-02-05 19:15

We\'ve installed \'bootstrap-tagsinput.js\' and the \'typeahead\' plugin for doing a tyepahead drop down for tags for an input field in one of our forms. The hardcoded tags work

5条回答
  •  日久生厌
    2021-02-05 19:44

    Same problem here. Resolved dropping the original typeahead.js (that is not compatible with Bootstrap 3) and using bootstrap3-typeahead.js (https://github.com/bassjobsen/Bootstrap-3-Typeahead).

    Moreover, you don't need to add (actually on some occasions you MUST remove it in order to work)

    data-role="tags input"
    

    when you specify

    $('#my_field').tagsinput({ typeahead: ...
    

提交回复
热议问题