You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How the setSelectionRange() method is supposed to work, when the input caret is moved to a position in the text, where it is not visible? Here is the sample.
What I expect is that when I focus the input, and then call setSelectionRange() method, then the text is scrolled to the position, where the caret has already been moved. I've already logged two issues to Chrome and Microsoft (I was not with the intend that they were issues, I was not sure how this should work). The guys from Microsoft told me that this has been already fixed. The guys from Chromium project kindly shared their implementation and said that if I want to scroll to caret position I need to focus after the setSelectionRange() method takes place.
The text was updated successfully, but these errors were encountered:
How the setSelectionRange() method is supposed to work, when the input caret is moved to a position in the text, where it is not visible? Here is the sample.
What I expect is that when I focus the input, and then call setSelectionRange() method, then the text is scrolled to the position, where the caret has already been moved. I've already logged two issues to Chrome and Microsoft (I was not with the intend that they were issues, I was not sure how this should work). The guys from Microsoft told me that this has been already fixed. The guys from Chromium project kindly shared their implementation and said that if I want to scroll to caret position I need to focus after the setSelectionRange() method takes place.
The text was updated successfully, but these errors were encountered: