bootstrap-select icon indicating copy to clipboard operation
bootstrap-select copied to clipboard

Vue: bootstrap-select creates button with title={{option.value}} attribute which is no longer allowed

Open jlitster opened this issue 7 years ago • 10 comments

Vue throws an "Error compiling template" when trying to use boostrap-select while binding to

https://jsfiddle.net/t0u28xec/

  1. Set up your HTML file with jQuery 3.3.1, bootstrap 4.1.3, bootstrap-select 1.13.2 and vue 2.2.1 (dev to see the verbose problem description)
  2. Add a <select class="selectpicker"> to your HTML.
  3. Add one <option v-for="option in someCollection" v-bind:value="option.id">{{ option.value }}</option> to the select.
  4. Set up the Vue in your JavaScript to bind the above with an empty array for the collection (not sure if it matters much if it's a real collection of objects)

(See the JSFiddle for an example)

Four JavaScript exceptions are thrown by vue.js when using the dev version. It explains that: "Interpolation inside attributes has been removed..." and shows where the problem lies.

Bootstrap-select creates a button and apparently pulls the original