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

Trigger search modal on "Search docs" input focus #1610

Merged
merged 1 commit into from
Oct 2, 2024

Conversation

humitos
Copy link
Member

@humitos humitos commented Oct 1, 2024

This is a regression introduced in
#1601

This PR triggers the search modal when clicking on the "Search docs" input from

  • inside the flyout if present
  • the top left navbar

This is a regression introduced in
#1601

This PR triggers the search modal when clicking on the "Search docs" input from
- inside the flyout if present
- the top left navbar
@humitos humitos requested a review from a team as a code owner October 1, 2024 08:57
Copy link
Member

@ericholscher ericholscher left a comment

Choose a reason for hiding this comment

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

Seems that we just moved this outside the if block? Is there any more context on why that fixes it?

@humitos
Copy link
Member Author

humitos commented Oct 1, 2024

Yes. We moved it away from the first block because that block is only executed when theme_flyout_display = "attached", which is not executed by default.

@humitos humitos self-assigned this Oct 1, 2024
@humitos humitos merged commit 5b181b8 into master Oct 2, 2024
7 checks passed
@humitos humitos deleted the humitos/search-modal branch October 2, 2024 11:52
@humitos
Copy link
Member Author

humitos commented Oct 2, 2024

I released 3.0.0rc4 with this work: https://pypi.org/project/sphinx-rtd-theme/3.0.0rc4/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants