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 autocomplete autoscroll on focus mobile only #496

Merged
merged 1 commit into from
Sep 13, 2024

Conversation

Abban
Copy link
Member

@Abban Abban commented Sep 12, 2024

We added an on focus autoscroll to the autocomplete fields to stop the dropdown menu being hidden behind the on screen keyboard. This works well on mobile but is annoying on desktop, so this makes the autoscroll only happen on smaller sizes.

I also moved the autoscroll functionality into a composable as it's shared between 3 fields.

Ticket: https://phabricator.wikimedia.org/T374419

Copy link
Member

@gbirke gbirke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested, works

We added an on focus autoscroll to the autocomplete fields
to stop the dropdown menu being hidden behind the on screen
keyboard. This works well on mobile but is annoying on desktop,
so this makes the autoscroll only happen on smaller sizes.

I also moved the autoscroll functionality into a composable as
it's shared between 3 fields.

Ticket: https://phabricator.wikimedia.org/T374419
@Abban Abban force-pushed the fix-desktop-autocomplete-autoscroll branch from 749a60c to ea52ef7 Compare September 13, 2024 05:18
@Abban Abban merged commit 320f06e into main Sep 13, 2024
1 of 3 checks passed
@Abban Abban deleted the fix-desktop-autocomplete-autoscroll branch September 13, 2024 05:18
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.

2 participants