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

[iOS] Fix SearchBar focus issues #11698

Merged
merged 12 commits into from
Mar 20, 2023
Merged

[iOS] Fix SearchBar focus issues #11698

merged 12 commits into from
Mar 20, 2023

Conversation

jsuarezruiz
Copy link
Contributor

Description of Change

Fix SearchBar focus issues on iOS/Catalyst.

fix-searchbar-focus-ios

To test/validate the changes, launch the .NET MAUI Gallery and navigate to the SearchBar sample. Tap on the Focus SearchBar. A dialog must appear.

Issues Fixed

Fixes #11542

@ghost ghost added the legacy-area-controls Label, Button, CheckBox, Slider, Stepper, Switch, Picker, Entry, Editor label Nov 28, 2022
Copy link
Member

@PureWeen PureWeen left a comment

Choose a reason for hiding this comment

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

What do you think about my comment here?
#11542 (comment)

What if we if we fixed the "UnFocus" API so users could control if they want to open or close the keyboard?

@jsuarezruiz
Copy link
Contributor Author

Reference in

What do you think about my comment here? #11542 (comment)

What if we if we fixed the "UnFocus" API so users could control if they want to open or close the keyboard?

Do you mind to move the logic to ViewHandler and check always the PlatformView status?

Copy link
Member

@mandel-macaque mandel-macaque left a comment

Choose a reason for hiding this comment

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

minor changes.

src/Core/src/Handlers/SearchBar/SearchBarHandler.iOS.cs Outdated Show resolved Hide resolved
src/Core/src/Handlers/SearchBar/SearchBarHandler.iOS.cs Outdated Show resolved Hide resolved
Copy link
Member

@PureWeen PureWeen left a comment

Choose a reason for hiding this comment

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

Can you add tests?

@jsuarezruiz
Copy link
Contributor Author

Can you add tests?

Added Device Test, could you review it again?

@github-actions
Copy link
Contributor

Thank you for your pull request. We are auto-formatting your source code to follow our code guidelines.

@PureWeen PureWeen merged commit d6adf5c into main Mar 20, 2023
@PureWeen PureWeen deleted the fix-11542 branch March 20, 2023 15:36
@github-actions github-actions bot locked and limited conversation to collaborators Dec 15, 2023
@Eilon Eilon removed the legacy-area-controls Label, Button, CheckBox, Slider, Stepper, Switch, Picker, Entry, Editor label May 10, 2024
@samhouts samhouts added the fixed-in-8.0.0-preview.3.8149 Look for this fix in 8.0.0-preview.3.8149! label Aug 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-controls-entry Entry fixed-in-8.0.0-preview.3.8149 Look for this fix in 8.0.0-preview.3.8149! platform/iOS 🍎 t/bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SearchBar does not unfocus and hide keyboard on iOS
5 participants