-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Bugfix FXIOS-10696 Dismiss search bar when tap on the outside view in HistoryPanel #23276
Bugfix FXIOS-10696 Dismiss search bar when tap on the outside view in HistoryPanel #23276
Conversation
Hi @gokulvenkat243! Thank you for your contribution. 🙏 I took a quick look at your PR. Your code does helpfully close the HistoryPanel's search bar, but I think we should also account for closing the keyboard with this solution (see video below for the problem). You can try calling RPReplay_Final1732217854.MP4 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @gokulvenkat243 ! Looks good.
I will get this merged in on Monday. 👍
Just closing briefly to get Bitrise to update. |
Some unrelated CI tests are failing in the pipeline. @gokulvenkat243 Can you please rebase on the latest main for Bitrise? 🙏 Thanks! |
885b5be
to
6c52c6e
Compare
Client.app: Coverage: 31.63
Generated by 🚫 Danger Swift against 8c3cf1d |
Hi @gokulvenkat243, I was just chatting with @FilippoZazzeroni who is more familiar with this area of the code. He would like to approach this fix in a better way using the UISearchBarDelegate. This is because your new gesture only works if you have an empty history panel. Otherwise, tapping on a row will cause you to visit the webpage, not close the keyboard. If you add this line to the UISearchBar:
and inside the HistoryPanel+Search.swift file, you can implement the following delegate method with your code instead:
|
Thanks for that change! You can also safely remove your tab gesture code now, I believe the cancel button will accomplish the same need. 🙏 |
Thanks @gokulvenkat243 for your changes, this has been merged! 🥳 |
Thanks for your help @ih-codes ❤️ |
📜 Tickets
Jira ticket
Github issue
💡 Description
📝 Checklist
You have to check all boxes before merging
@Mergifyio backport release/v120
)