question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

b-input-group prepend changes

See original GitHub issue

Hi 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:closed
  • Created 4 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
tmorehousecommented, Mar 22, 2019

https://bootstrap-vue.js.org/docs/components/input-group#comp-ref-b-input-group-text

<b-input-group>
  <b-input-group-text slot="prepend"><i class="fas fa-filter fa-fw"></i></b-input-group-text>
  <b-form-input v-model="filter" placeholder="Type to search"></b-form-input>
  <b-button slot="append" :disabled="!filter" @click="filter = ''">Clear</b-button>
</b-input-group>
1reaction
tmorehousecommented, Mar 22, 2019

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found