react-md icon indicating copy to clipboard operation
react-md copied to clipboard

[Violation] Passive event listeners

Open mvuherer opened this issue 9 years ago • 2 comments

Description

InkContainer (possible some others as well) emit a violation due to non passive event listener that do not prevent default action.

[Violation] Added non-passive event listener to a scroll-blocking 'touchstart' event. Consider marking event handler as 'passive' to make the page more responsive.

Solution

Adding { passive: true } to event listeners that do not prevent default action. Such as lines 235, 247 and 248 in InkContainer.js

Version

  • React: 15.5.4
  • React-MD: 1.0.14
  • Browser Chrome (58)

P.S. was trying to submit a PR for that but got denied T_T

mvuherer avatar May 24 '17 11:05 mvuherer

Hmm. I didn't think I had anything preventing pull requests... Not sure what caused that :/

mlaursen avatar May 24 '17 15:05 mlaursen

Same issue here

cescox avatar Jun 14 '17 08:06 cescox