8000 BDropdown button click event discrepancy with docs · Issue #2571 · bootstrap-vue-next/bootstrap-vue-next · GitHub
[go: up one dir, main page]

Skip to content
BDropdown button click event discrepancy with docs #2571
Closed
@Rocik

Description

@Rocik

Clear and concise description of the problem

Dropdown docs say
Image

But looking at the component, only click is emitted, and it works as if it was actually the split-click.

const emit = defineEmits<
{
click: [event: MouseEvent]
} & showHideEmits
>()

I would need the caret click (in non-split mode) to be emitted with event prop in order to stop its propagation.

Suggested solution

Implement the events (click, split-click) mentioned in the docs.

Alternative

Fix documentation to match current implementation and then add additional event emit or update click event to be always emitted in non-split mode.

Additional context

I'm up to sending a PR when a single solution is accepted.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0