8000 BTable does not emit row-selected event if select-mode is set as 'single' · Issue #2245 · bootstrap-vue-next/bootstrap-vue-next · GitHub
[go: up one dir, main page]

8000 Skip to content
BTable does not emit row-selected event if select-mode is set as 'single' #2245
Closed
@leonardootoni

Description

@leonardootoni

Describe the bug

BTable component on bootstrap-vue-next v0.24.23 does not emit the row-selected event if it is set as:

  • selectable: true
  • select-mode: 'single'

Changing select-mode to 'multi' allows the component to fire the row-selected event as per documentation.
It also should work when set as 'single' when table is set as "selectable"

example:

<BTable
    ref="tableRef"
    :selectable="true"
    :select-mode="single"
    :selectionVariant="primary"
    hover
    bordered
    striped
    small
    :responsive="true"
    :items="props.items"
    :fields="props.fields"
    fixed
    @row-selected="onRowSelected"
    @row-unselected="onRowUnselected"
  />

Reproduction

set BTable as :selectable="true" :select-mode="single"

Used Package Manager

npm

Validations

  • Have tested with the latest version. This is still alpha version and sometime things change rapidly.
  • Follow our Code of Conduct
  • Read the Contributing Guide.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
  • The provided reproduction is a minimal reproducible of the bug.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0