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

select2 not showing correctly inside Bootstrap Floating Labels #56

Closed
ricky-gomez opened this issue Nov 18, 2021 · 1 comment
Closed

Comments

@ricky-gomez
Copy link

ricky-gomez commented Nov 18, 2021

When you place a standard select element inside a .form-floating class (Bootstrap 5) it displays correctly, but once you replace the standard select element with Select2 it no longer displays correctly.

Example code:

<div class="form-floating">
	<select id="floatingLabelsExample" class="form-select">
		<option value="1">Option 1</option>
		<option value="2">Option 2</option>
		<option value="3">Option 3</option>
	</select>
	<label for="floatingLabelsExample">Choose an option</label>
</div>

See: https://getbootstrap.com/docs/5.1/forms/floating-labels/

@ricky-gomez ricky-gomez changed the title select2 select2 -bootstrap-5-theme not showing correctly inside Bootstrap Floating Labels Nov 18, 2021
@ricky-gomez ricky-gomez changed the title select2 -bootstrap-5-theme not showing correctly inside Bootstrap Floating Labels select2 not showing correctly inside Bootstrap Floating Labels Nov 18, 2021
@ricky-gomez
Copy link
Author

I apologize for repeating an issue, I did not realize. So I'm going to close this one.

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