vlad-ignatov/react-numeric-input

Unable to preventDefault inside passive event listener due to target being treated as passive

stefgootzen opened this issue · 3 comments

I'm still getting the following error message.

Unable to preventDefault inside passive event listener due to target being treated as passive. See https://www.chromestatus.com/features/5093566007214080

  • Only on mobile
  • Version 2.2.3
  • User agent: Mozilla/5.0 (Linux; Android 8.0.0; ONEPLUS A3003) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.75 Mobile Safari/537.36

It's the same message as in #44. However, I'm not experiencing the double steps.

I've tried setting the touch-action to auto like (styled components):

const StyledInput = styled(NumericInput)`
  touch-action: auto;
`;

Any idea how to fix this?

me too

me too

A possible solution could be adding: touch-action: none; what do you think?