Skip to content

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.

@kailowbi
Copy link

I have tested this feature.

_encoded.mp4

This improvement resolves the limitation where focus was only possible on text fields visible on the screen.
By removing the restrictions on focusInput, it becomes a more practical and user-friendly feature.
I would appreciate if this could be merged.

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
2 participants