Closed Void-0 closed 5 years ago
Yeah there is lot's of fishy things going on with selections to make it work on all browser... I'll have a look but I think I know what's going on.
:tada: This issue has been resolved in version 1.9.1 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
I've come across a small bug related to text selection (with the mouse).
How to reproduce bug:
Basically the component just ignores the new selection if it ends outside the component and uses the previously saved selection instead. This can be quite annoying if you want to for example quickly select all the text inside the text field and just slide your mouse out of the edge of the component.
Funny thing is though, if you don't focus the input at least once after loading the page (and there is no saved previous selection) then the new selection, even if the mouse ends up outside the component is recognised (and the bug is not produced). My guess is this has something to do with how the last selection is saved by the component and somehow the saved position takes priority over the new one if the mouse leaves the component while selecting text.