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

Dropdown and detectNavbar #24267

Closed
danijelGombac opened this issue Oct 5, 2017 · 7 comments
Closed

Dropdown and detectNavbar #24267

danijelGombac opened this issue Oct 5, 2017 · 7 comments
Assignees
Labels

Comments

@danijelGombac
Copy link

Is there a reason why detectNavbar selector is not part of config options?

It could be an option like

data-navbar=".my-navbar"

Then the functionality could be extended to custom navbars.

@Johann-S
Copy link
Member

Johann-S commented Oct 5, 2017

Nope I just didn't handle that use case but we use the closest navbar

@danijelGombac
Copy link
Author

It could be default '.navbar', but if someone need disable popper in custom navigation can use different selector to disable it.

@Johann-S
Copy link
Member

Johann-S commented Oct 5, 2017

This PR will allow you to disable Popper.js #24092

@danijelGombac
Copy link
Author

Ok, thanks. I have another question. Why is used:

!$(parent).closest(Selector.NAVBAR_NAV).length

and not

!this._inNavbar

Is not the same? Navbar_nav should be inside navbar

@Johann-S
Copy link
Member

Johann-S commented Oct 5, 2017

Yep we can change that 👍

@Johann-S
Copy link
Member

Johann-S commented Oct 5, 2017

I think we can close this issue @danijelGombac ?

@danijelGombac
Copy link
Author

Yes, thanks.

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

No branches or pull requests

3 participants