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

[docs] Search dialog not fixed in Safari iOS #45407

Open
bernardobelchior opened this issue Feb 25, 2025 · 2 comments
Open

[docs] Search dialog not fixed in Safari iOS #45407

bernardobelchior opened this issue Feb 25, 2025 · 2 comments
Assignees
Labels
component: dialog This is the name of the generic UI component, not the React module! docs Improvements or additions to the documentation dx Related to developers' experience

Comments

@bernardobelchior
Copy link
Member

bernardobelchior commented Feb 25, 2025

Steps to reproduce

Steps:

  1. Open this link in Safari iOS: mui.com or next.mui.com
  2. Scroll down
  3. Open the search dialog from the navbar

Current behavior

The dialog is at the top of the page, so I need to scroll up to see it.

Expected behavior

The dialog should always be visible

Context

ScreenRecording_02-25-2025.11-05-41_1.mov

Your environment

iPhone 14 on iOS 18.3.1, but I was also able to reproduce on the iOS simulator using iPhone 16 on iOS 18.3.

Search keywords: search dialog, safari, ios

@bernardobelchior bernardobelchior added the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label Feb 25, 2025
@zannager zannager added docs Improvements or additions to the documentation component: dialog This is the name of the generic UI component, not the React module! labels Feb 25, 2025
@hanszeng-chn
Copy link

It seems that the searchInput (class name: DocSearch-Input) is correctly auto-focused, but it does not cause the page to scroll to the input for some reason.
I tried to blur first, and then focus again. It works. I think this should be one of the solutions.
BTW, all these happen in @docsearch/react package.

@siriwatknp
Copy link
Member

It seems that the searchInput (class name: DocSearch-Input) is correctly auto-focused, but it does not cause the page to scroll to the input for some reason. I tried to blur first, and then focus again. It works. I think this should be one of the solutions. BTW, all these happen in @docsearch/react package.

Thanks for the analysis. I mark this issue as external.

@siriwatknp siriwatknp added external dependency Blocked by external dependency, we can’t do anything about it dx Related to developers' experience and removed status: waiting for maintainer These issues haven't been looked at yet by a maintainer external dependency Blocked by external dependency, we can’t do anything about it labels Mar 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: dialog This is the name of the generic UI component, not the React module! docs Improvements or additions to the documentation dx Related to developers' experience
Projects
None yet
Development

No branches or pull requests

4 participants