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

Allow completely custom trigger elements for dropdown component #7158

Open
ventralnet opened this issue Jun 23, 2023 · 0 comments
Open

Allow completely custom trigger elements for dropdown component #7158

ventralnet opened this issue Jun 23, 2023 · 0 comments

Comments

@ventralnet
Copy link

Describe the bug

Support for non button triggers in bootstrap-vue / dropdown. Specifically my use case is a search input which, after the user types some text shows a dropdown of potential suggested searches.

Steps to reproduce the bug

The current dropdown component will allow you to add 'toggle-classes' and type of trigger element. This gets some of the way there but there are a couple problems.

  1. btn classes are added to the trigger element
  2. Click events trigger open and close with no way for override

Expected behavior

Don't assume the type of the trigger element.. Or allow 'custom-trigger' element that isn't altered. Allow a 'isOpen' prop to open and close the dropdown programatically.

Versions

BootstrapVue 2.x.x

Thoughts? It seems fairly common for dropdown support on non button items. I am currently in the researching phase to upgrade bootstrap. Curranty our app is using the UIV bootstrap library dropdown (Among other components)

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