use-editable
use-editable copied to clipboard
Uncaught DOMException: Failed to execute 'getRangeAt' on 'Selection': 0 is not a valid index.
Hi, just bumped into this, the solution is to check selection.rangeCount !== 0 before calling selectino.getRangeAt(0)
https://stackoverflow.com/questions/22935320/uncaught-indexsizeerror-failed-to-execute-getrangeat-on-selection-0-is-not
I got into this because I called getState() while disabled option is true