Cursor position at the begining
See original GitHub issueIn version 5.3.2
I am still experiencing the cursor always being positioned at the beginning of the text.
Repro
No need for the repro, just try it in the demo at https://react-select.com/home and set the focus on the first select field.
I understand that there is a <span />
and a <div class="react-select__single-value" />
field overlapping, but is there really no solution for this?
UX is a little bit funny when you expect to be able to edit the text but in reality it’s empty text… I found old related issues but they are quite old so I thought I’d give it a try again with a new one. Thx
Issue Analytics
- State:
- Created a year ago
- Comments:9
Top Results From Across the Web
How to: Position the Cursor at the Beginning or End of Text in ...
To position the cursor at the beginning of the contents of a TextBox control, call the Select method and specify the selection start...
Read more >Move the Cursor to the Beginning of an Input field using JS
To move the cursor to the beginning of an input field, use the `setSelectionRange()` method to move the cursor to the beginning of...
Read more >Set cursor position at the beginning of the line - Stack Overflow
setSelectionRange(startPosition, endPosition); : This selects the text between the two provided positions. If the start and end are the same, ...
Read more >Setting the cursor position - IBM
An open file has a cursor. The cursor points to the record to be read, updated, or deleted. When a file is first...
Read more >How to set and get cursor position in a text area - TinyMCE
Setting the cursor position · 1. Select content, and then bookmark the position of the content · 2. Set the caret position on...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I investigated and it’s because the input itself doesn’t have the value. We must ask the maintainers what are the plans on implementing this
Thanks for your reply! Sorry maybe I forgot to mention that I am referring to searchable selects, where you can type. If there is a value selected and you want to edit it, you blick in the box and the cursor is always at position 0: