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

Unable to focus the Rating like input file #33

Open
bhanu-p opened this issue Nov 23, 2022 · 3 comments
Open

Unable to focus the Rating like input file #33

bhanu-p opened this issue Nov 23, 2022 · 3 comments

Comments

@bhanu-p
Copy link

bhanu-p commented Nov 23, 2022

<Form.Control
type="email"
placeholder="[email protected]"
autoFocus
/>

@awran5
Copy link
Owner

awran5 commented Nov 24, 2022

Hi @bhanu-p, I'm not sure what are you trying to achieve with autoFocus. What do you want to happen when you focus it?

@bhanu-p
Copy link
Author

bhanu-p commented Nov 24, 2022

We are expecting to move the cursor to give the rating at first(first priority), like this
image

@awran5
Copy link
Owner

awran5 commented Nov 24, 2022

I'll add accessibility support in my next release meanwhile, you could just wrap the Rating component with div or span element and set tabIndex attribute to 0 like so :

// your input here 

<div tabIndex={0}>
   <Rating {/* ... */ }  />
</div>

// another input

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

No branches or pull requests

2 participants