b-input-group prepend changes
See original GitHub issueHi all,
This used to work, but has stopped:
<b-form-group horizontal class="mb-0">
<b-input-group
title="Filter your data"
prepend="<i class='fas fa-filter'/>"
>
<b-form-input v-model="filter" placeholder="Type to search" />
<b-input-group-append>
<b-btn :disabled="!filter" @click="filter = ''"
>Clear</b-btn
>
</b-input-group-append>
</b-input-group>
</b-form-group>
the font awesome would show, now I just see <i class='fas fa-filter'/>
Should I just use the label slot or prepend component like mentioned in https://github.com/bootstrap-vue/bootstrap-vue/issues/2070
Thanks.
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
Input Group | Components
Easily extend form controls by adding text, buttons, or button groups on either side of textual inputs.
Read more >Input group
Easily extend form controls by adding text, buttons, or button groups on either side of textual inputs, custom selects, and custom file inputs....
Read more >Input Group | Components | BootstrapVue
Easily extend form controls by adding text, buttons, or button groups on either side of textual inputs.
Read more >Form input group append prepend - is there an missing ...
I wonder how to implement Bootstrap4 input group label between two input field. There are "prepend" and "append" styles, but in this case...
Read more >BootstrapVue — Input Group Customizations and ...
We can add a switch to the left or right of the input group with the b-form-checkbox component.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
https://bootstrap-vue.js.org/docs/components/input-group#comp-ref-b-input-group-text
all props that accept test no longer accept HTML (unless he prop is appended with
Html
, i.e.labelHtml
), due to potential Cross Site Scripting (XSS) vulnerabilities when passing user supplied content to the component.For Input Groups, use the slots, or individual helper components for prepend/append for HTML content.