Range input causes error trying to re-attach focus
Closed this issue · 2 comments
JRJurman commented
Summary
When using an input with type range, trying to re-attach focus (and specifically set selectionStart / selectionEnd / selectionDirection) causes an error.
Potential Solution
We should wrap this logic in a try-catch. Usually I would suggest to do a more complex check here, but this happens when the element already has a setSelectionRange, so there isn't much else to check as far as I can tell.
JRJurman commented
I was half-way through writing this before getting distracted - I am working on this now and plan on having a PR out (hopefully) soon.