We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f635746 commit e6a12baCopy full SHA for e6a12ba
js/webui/src/elements.js
@@ -92,13 +92,13 @@ export class RepeatingButton extends React.PureComponent
92
93
handleClick(e)
94
{
95
- if (e.button === 0 || e.button === 1)
96
- {
97
- e.preventDefault();
+ if (e.button !== 0)
+ return;
98
99
- if (e.button === 0 && !this.hasInitialClick)
100
- this.props.onClick();
101
- }
+ e.preventDefault();
+
+ if (!this.hasInitialClick)
+ this.props.onClick();
102
}
103
104
componentDidUpdate(prevProps, prevState, snapshot)
0 commit comments