Skip to content

q-table @row-contextmenu event not being called when table is a grid #17758

@kestrel-x86

Description

@kestrel-x86

What happened?

Using this minimal example, the console logs a line "hello world" with each right-click on a row. However, changing the table to a grid prevents @row-contextmenu from being called.

What did you expect to happen?

@row-contextmenu should be called regardless of the configuration of the table

Reproduction URL

https://codepen.io/rstoenescu/pen/xxEvBLR

How to reproduce?

This will spawn a notif when right-clicked

<q-table @row-contextmenu="ctxMenu" :rows="[{ name: 'foo', age: 45 }, { name: 'bar', age: 42 }]"/>

This will not, the only change being the addition of the grid property.

<q-table @row-contextmenu="ctxMenu" :rows="[{ name: 'baz', age: 45 }, { name: 'qux', age: 42 }]" grid/>

Flavour

UMD

Areas

Components (quasar)

Platforms/Browsers

Microsoft Edge

Quasar info output

No response

Relevant log output

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions