Lucifier129 / react-lite

An implementation of React v15.x that optimizes for small script size
MIT License
1.73k stars 98 forks source link

Uncaught InvalidStateError: Failed to execute 'setSelectionRange' on 'HTMLInputElement': The input element's type ('number') does not support selection. #131

Open mrdulin opened 6 years ago

mrdulin commented 6 years ago

image

Uncaught InvalidStateError: Failed to execute 'setSelectionRange' on 'HTMLInputElement': The input element's type ('number') does not support selection.

"react-lite": "^0.15.38", "fastclick": "^1.0.6",

google chrome: 63.0.3239.132, set toggle device toolbar on

related issue: https://github.com/ftlabs/fastclick/issues/358

It's probably an issue for fastclick, but it affects src/react-lite/lib/react-tap-event-plugin.js

Lucifier129 commented 6 years ago

It seems like this is not a problem with react-lite, I have no idea what can we do.

mrdulin commented 6 years ago

@Lucifier129 Yeah, but react-lite/lib/react-tap-event-plugin.js use fastclick, it's a fastclick issue. Use react-tap-event-plugin, the error gone.