We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Hi, just bumped into this, the solution is to check selection.rangeCount !== 0 before calling selectino.getRangeAt(0)
selection.rangeCount !== 0
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
getState()