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

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

Open mrdulin opened this issue 7 years ago • 2 comments

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

mrdulin avatar Jan 19 '18 07:01 mrdulin

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

Lucifier129 avatar Jan 19 '18 08:01 Lucifier129

@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.

mrdulin avatar Jan 19 '18 09:01 mrdulin