FlowFuse / FlowFuse/node-red-dashboard

Right click button press

Open
#1,623 5 comments 0 reactions 0 assignees View on GitHub
needs-triage type:bug
Dominant language
HTML
Stars
355
Forks
82
Avg merge
4d 23h
Merged PRs (30d)
24

Description

### Current Behavior

The basic button in dashboard 2 has a weird behaviour when right clicked.
I'm having multiple button extended with the button events node to get safety function like long press out of it.
When right click on a button is stays in the state of pressed. This "error" interferes with the long press action and makes it obsolete. Buttons in the old dashboard do not have this behaviour.

### Expected Behavior

Right click on dashboard 2 ui button does not keep the button in pressed state.

### Steps To Reproduce

import a button
activate pointerdown (payload true) and pointerup function (payload false)
import button events node - setup 3 states "button press", "released", "pressed"
right click on ui button
debug button events outputs

### Environment

- Dashboard version: flow fuse dashboard 1.22.1
- Node-RED version: 4.0.5
- Node.js version: 20.18.1
- npm version: 10.8.1
- Platform/OS: Ubuntu
- Browser: Chrome, Edge, Safari

### Have you provided an initial effort estimate for this issue?

I have provided an initial effort estimate

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.