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

v7 - Input stealing focus when interacting with caption element #599

Closed
mattfysh opened this issue Jan 4, 2018 · 2 comments
Closed

v7 - Input stealing focus when interacting with caption element #599

mattfysh opened this issue Jan 4, 2018 · 2 comments

Comments

@mattfysh
Copy link

mattfysh commented Jan 4, 2018

I have a caption element where I've converted the month and year to dropdowns, so users can quickly move across years/decades as needed.

However, the latest version re-applies focus to the input element if clicking inside the container - which causes the dropdown to briefly open and then immediately close. The offending lines:

if (this.clickedInside) {
this.blurTimeout = setTimeout(() => this.input.focus(), 0);
}

Is there any way to disable this behaviour?

@gpbl
Copy link
Owner

gpbl commented Jan 9, 2018

We are trying to fix this via #598. Basically is the same of #579.

At this point, if that focus is giving so many problems (basically in firefox, for which the timeout was introduced), we could add a new keepFocus prop to disable it.

@gpbl
Copy link
Owner

gpbl commented Jan 9, 2018

Closing as duplicate of #579.

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