Skip to content

Fix navigator filter getting cutoff #425

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

Conversation

dobromir-hristov
Copy link
Contributor

Bug/issue #, if applicable: 99316400

Summary

Fixes an issue where the navigator filter gets cutoff when you expand a few items in the Navigator.

This happens because we were trying to catch transition events the adjustable sidebar in order to apply some extra styling mid transition. However, those event listeners would also catch deep child events as well, which was causing the bug.

A good practice with transitionstart event is to use the .self modifier, which I totally forgot.

Dependencies

NA

Testing

Steps:

  1. Open/close a few items in the navigator
  2. Assert filter is not cutoff when you click into it.

Checklist

Make sure you check off the following items. If they cannot be completed, provide a reason.

  • Added tests
  • Ran npm test, and it succeeded
  • Updated documentation if necessary

@dobromir-hristov
Copy link
Contributor Author

@swift-ci test

@dobromir-hristov dobromir-hristov merged commit 2abc274 into swiftlang:main Aug 31, 2022
@dobromir-hristov dobromir-hristov deleted the dhristov/r99316400-fix-navigator-filter-cutoff branch August 31, 2022 06:59
dobromir-hristov pushed a commit to dobromir-hristov/swift-docc-render that referenced this pull request Sep 7, 2022
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