Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Awesomeplete interferes with Bootstrap form-group styling #17225

Open
eaglebush opened this issue Sep 7, 2020 · 2 comments
Open

Awesomeplete interferes with Bootstrap form-group styling #17225

eaglebush opened this issue Sep 7, 2020 · 2 comments

Comments

@eaglebush
Copy link

Hi,

My bootstrap form group default style is like this:

image

With Awesomeplete applied, it becomes this:

image

Is there a workaround with this?

Thanks for being Awesome!

@goulvench
Copy link
Contributor

Hi @eaglebush, and anyone having the same issue. You need to override display for the awesomplete div which wraps the input. .form-group is in Bootstrap 4 but the following should work just the same (using Bootstrap 5):

/* Override awesomplete default style to match Bootstrap's block inputs */
.awesomplete {
  display: block;
}
<label for="input_id">Input label text</label>
<input type="text" class="form-control awesomplete" id="input_id" data-list="Ada, Java, JavaScript, Brainfuck, LOLCODE, Node.js, Ruby on Rails" />

Here's a codepen to see it live: https://codepen.io/goulvench/pen/VwpOXeE

@MSouilah
Copy link

MSouilah commented Jul 1, 2022

Hi,
Thanks a lot, I thought I was crazy with this bug !!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants