Baseweb: [Select] Cursor inserted at beginning instead of end of value

Created on 26 Aug 2019  路  5Comments  路  Source: uber/baseweb


Current Behavior

Sandbox: https://codesandbox.io/s/ndonk?module=/example.tsx

  1. Select an option
  2. Click into the Select
  3. Notice the text cursor is inserted at the beginning of the value

I understand that this behavior may be intentional, as it allows the user to "just start typing" to choose a new value. That conflicts with the behavior of a standard text input, though, so I would encourage a different approach.

Expected Behavior

  1. Select an option
  2. Click into the Select
  3. The text cursor is inserted at the end of the value

If you agree this is an issue and can provide some guidance on where to get started, I'm happy to try my hand at a fix.

Your Environment

| Tech | Version |
| ------- | ------- |
| Base UI | v8.16.5 |
| React | 16.8.6 |
| browser | Mac Chrome, Mac Firefox, (all?) |

  • [x] I have searched the issues of this repository and believe that this is not a duplicate.
bug good first issue help wanted

Most helpful comment

@gergelyke Can I work on this issue?

All 5 comments

thanks for opening this one @kylegach - any chance you could send a PR fixing it?

@gergelyke Can I work on this issue?

that'd be awesome, thanks @Patil2099

This issue is stale because it has been open 30 days with no activity. If it's still valid, please remove the stale label or comment on the issue, otherwise this ticket will be closed in 5 days

@kylegach are you still looking into this issue? If not, I'd be interested in taking it on.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

maraisr picture maraisr  路  5Comments

4eshircat picture 4eshircat  路  4Comments

houmark picture houmark  路  6Comments

vik-buchinski picture vik-buchinski  路  4Comments

jasongi-actu picture jasongi-actu  路  7Comments