yN.
yN.

Reputation: 2257

React onDoubleClick handler is not called

How to handle the dblclick event in React? The docs lists onDoubleClick. However the following code does not fire any events when double clicking on the img.

<img src="blub.jpg" onDoubleClick={ () => console.log('Im not fired') } />

Upvotes: 2

Views: 2132

Answers (1)

Amolo Joseph
Amolo Joseph

Reputation: 51

some how onDoubleClick works when your browser dev tool is closed

Upvotes: 2

Related Questions