HTLWelsITLover99
HTLWelsITLover99

Reputation: 209

<b-form-select-option> not working in Bootstrap Vue

can anyone tell me why my "b-form-select-option" is not working?

Thats my code:

enter image description here

I am using Vue with Bootstrap, everything else works, except for this single command. I am getting the standard "unknown html tag" error.

What is wrong here? I just copied the code from https://bootstrap-vue.js.org/docs/components/form-select/ and adapted it to my project.

Upvotes: 3

Views: 5157

Answers (3)

Troy Morehouse
Troy Morehouse

Reputation: 5435

Make sure you are using BootstrapVue v2.2.x.

The <b-form-select-*> sub components were introduced in v2.2.0.

Upvotes: 3

m.f
m.f

Reputation: 99

There you have a simple example of usage.

You have to declare options inside <script>...</script>, like this:

options: [
    {
         value: null,
         text: 'Please select an option'
    },
]

Upvotes: -1

adajoy MC
adajoy MC

Reputation: 61

the "unknown html tag" error means your editor doesn't recogonize thie element, your web app can still work, you can add this tag as an custom tag in your editor preference

Upvotes: 2

Related Questions