Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

textarea : Can't put caret at a specific position when focusing #418

Closed
efflam opened this issue Aug 23, 2019 · 2 comments · Fixed by #420
Closed

textarea : Can't put caret at a specific position when focusing #418

efflam opened this issue Aug 23, 2019 · 2 comments · Fixed by #420
Labels

Comments

@efflam
Copy link

efflam commented Aug 23, 2019

🐛 Bug report

Current behavior

When using FormInput as textarea and if there is already some text inside the input, it's impossible to put the caret at a specific position on focus.

Steps to reproduce the bug

The bug can be experienced on the form docs page.
Use FormInput as textarea as described in the docs

<FormInput
        {...form}
        name="message"
        placeholder="What's on your mind?"
        as="textarea"
      />

Environment

Chrome, Safari at least

@open-collective-bot
Copy link

Hey @efflam 👋,

Thank you for opening an issue. We'll get back to you as soon as we can.
Please, consider supporting us on Open Collective. We give a special attention to issues opened by backers.

If you use Reakit at work, you can also ask your company to sponsor us ❤️.

@diegohaz diegohaz added the bug label Aug 23, 2019
@diegohaz
Copy link
Member

Thanks for reporting it @efflam!

I believe that we should add HTMLTextareaElement here:
https://github.com/reakit/reakit/blob/ee9623e4607ca2331563e2a44cc51ef6a874e438/packages/reakit/src/Tabbable/Tabbable.ts#L80

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants