Skip to content

[iOS] Fix SearchBar focus issues - #11698

Merged
PureWeen merged 12 commits into
mainfrom
fix-11542
Mar 20, 2023
Merged

PureWeen merged 12 commits into
mainfrom
fix-11542

Conversation

@jsuarezruiz

Copy link
Copy Markdown
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

@PureWeen PureWeen left a comment

Copy link
Copy Markdown
Member

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
Copy Markdown
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?

@mandel-macaque mandel-macaque left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

minor changes.

@PureWeen PureWeen left a comment

Copy link
Copy Markdown
Member

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
jsuarezruiz requested a review from PureWeen March 13, 2023 16:45
@jsuarezruiz

Copy link
Copy Markdown
Contributor Author

Can you add tests?

Added Device Test, could you review it again?

@github-actions

Copy link
Copy Markdown
Contributor

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

@jsuarezruiz
jsuarezruiz requested a review from PureWeen March 20, 2023 13:03
@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