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

Two main issues - need solution #26282

Closed
vosidiy opened this issue Apr 12, 2018 · 3 comments
Closed

Two main issues - need solution #26282

vosidiy opened this issue Apr 12, 2018 · 3 comments

Comments

@vosidiy
Copy link

vosidiy commented Apr 12, 2018

  1. I'm creating booking form where from dropdown you will select passengers and seats.
    When you try to edit passengers or select something dropdown closes
    https://codepen.io/vosidiy/pen/OvYJNr
    1

  2. Input group with button has dropdown as shown below. Button has icon ( adding by class dropdown-toggle). I want put my custom icon there. When I remove class "dropdown-toggle" then no more round corner :-(

https://www.bootply.com/I9H7NN3U5q
2

@vosidiy vosidiy changed the title Two main issue - need solution Two main issues - need solution Apr 12, 2018
@max-ci
Copy link

max-ci commented Apr 12, 2018

$(document).on('click', '.dropdown-menu', function (e) {
  e.stopPropagation();
});

@Joyrex
Copy link

Joyrex commented Apr 13, 2018

So on issue #2, you want to use a custom icon instead of the caret (triangle)?

You would have to remove the ::after pseudo-class that generates the caret:

.dropdown-toggle::after {
	display: inline-block;
	width: 0;
	height: 0;
	margin-left: .255em;
	vertical-align: .255em;
	content: "";
	border-top: .3em solid;
	border-right: .3em solid transparent;
	border-bottom: 0;
	border-left: .3em solid transparent;
}

You could try setting up an inline style that removes the border elements and try putting an icon in the content: or leave it so now you can put any icon you want where it says "icon" in your example:
https://www.bootply.com/NbOFJGlE0G#

@mdo
Copy link
Member

mdo commented Apr 30, 2018

Is there a bug here, or is this only a how-to question?

@mdo mdo closed this as completed May 10, 2018
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

4 participants