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

List Position Error when using bootstrap has-feedback has-error styling dynamically #28

Open
TharinduAmila opened this issue Nov 15, 2017 · 0 comments

Comments

@TharinduAmila
Copy link

I have added typeahead to an email input and wanted to customize this to suggest domains. Anyhow I am not able to get typeahead suggestions to align correctly with my input.
This is my html
<div id="emailFormGroup" class="form-group">
<label for="email">Email</label>
<input type="email" id="email" autocomplete="off" name="email" class="form-control" dataprovide="typeahead" placeholder=" [email protected] ">
<span id="email-feedback" class="form-control-feedback hide" aria-hidden="true"><i id="valid-msg-email" class="fa fa-check hide"></i><i id="invalid-msg-email" class="fa fa-times hide"></i></span>
</div>

I add classes has-feedback and has-error dynamically according to user input
This makes the typeahead list to jump around when the styling changes.
image

It rectifies when the styling stays the same

image

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

1 participant