mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-28 20:40:39 +00:00
Pass event
This commit is contained in:
parent
525bbcdb0d
commit
8f3b70f28e
1 changed files with 2 additions and 2 deletions
|
|
@ -17,12 +17,12 @@ export default class ClickedDiv extends React.Component {
|
|||
<div
|
||||
{...this.props}
|
||||
className={classnames(this.props.className, this.state)}
|
||||
onMouseDown={() => {
|
||||
onMouseDown={e => {
|
||||
if (!this.state.clicked) {
|
||||
this.setState({ clicked: true });
|
||||
}
|
||||
if (this.props.onMouseDown) {
|
||||
this.props.onMouseDown();
|
||||
this.props.onMouseDown(e);
|
||||
}
|
||||
}}
|
||||
/>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue