Skip to content

BPopover: allow better control over triggers #2783

@a-kriya

Description

@a-kriya

Missing feature is from

bootstrap-vue

Docs

https://bootstrap-vue.org/docs/components/popover/#triggers

Describe the missing feature

The BPopover component (and the derivative BTooltip) currently only supports choosing between the default trigger of hover + focus, or additionally on clicks by using the click prop.

This is not very customizable and does not cover some use cases where one of the default triggers must be removed.

I'm migrating from BV where triggers prop was supported on both BPopover and BTooltip components.

The migration guide mentions the following about it, but does not explicitly mention that the triggers prop has been deprecated and intentionally removed:

Triggers work differently as the underlying library we use to manage popovers has changed. See our documentation and floating-ui for details.

If it just hasn't been implemented, then I think the docs can add it with the NotImplemented tag as it does in other places, until it is implemented.

My use case is a password field that shows the password requirements in a popover which should ideally only show up when the field is focused, and not on hovers:

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    compatibility enhancementFeature missing that is in bootstrap.js v5 or bootstrap-vue v2

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions