question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cursor position at the begining

See original GitHub issue

In 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:open
  • Created a year ago
  • Comments:9

github_iconTop GitHub Comments

11reactions
idiglovecommented, Jun 29, 2022

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

image
6reactions
stesviscommented, May 31, 2022

I can not see the issue

Screen.Recording.2022-05-31.at.13.15.51.mov

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:

image

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found