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

Make focusInput focus all the input filelds in the whold page #4461

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

YunfangHou
Copy link

@YunfangHou YunfangHou commented Apr 13, 2024

Description

resolve #4046

Makes focusInput focus all the input fields in the whold page (including the fields out of view). If focused input field is out of view, the page will be auto scrolled to the aim location.

Reasons why applying this feature

  1. For most webpages, there is a search bar at the top of the page, which is the most used input field. However, at the time when we want to search something else, we are very likely have been at the bottom of the page, and thus present foucs input function can not be used because the search bar is at top.
  2. For most webpages, there are not much input fields. So focusing all input fields will not spend much time of user to switch to the aimed input field.

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

Successfully merging this pull request may close these issues.

Focus the first text input on the page - lack of scroll to active input field
1 participant