Skip to content

Commit 62b699e

Browse files
SuthiYuvarajPureWeen
authored andcommitted
Revert "Fix HideSoftInputOnTapped Not Working Net9 (#28534)" (#28802)
This reverts commit f3ec03b.
1 parent 2266e0d commit 62b699e

File tree

5 files changed

+3
-72
lines changed

5 files changed

+3
-72
lines changed

src/Controls/src/Core/ContentPage/HideSoftInputOnTappedChanged/HideSoftInputOnTappedChangedManager.Android.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ void OnWindowDispatchedTouch(object? sender, MotionEvent? e)
2020

2121
foreach (var page in _contentPages)
2222
{
23-
if ((page.HasNavigatedTo || page.Parent is Window) &&
23+
if (page.HasNavigatedTo &&
2424
page.HideSoftInputOnTapped &&
2525
page.Handler is IPlatformViewHandler pvh &&
2626
pvh.MauiContext?.Context is not null)

src/Controls/src/Core/ContentPage/HideSoftInputOnTappedChanged/HideSoftInputOnTappedChangedManager.Platform.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ partial class HideSoftInputOnTappedChangedManager
1414

1515
internal void UpdatePage(ContentPage page)
1616
{
17-
if (page.HideSoftInputOnTapped && (page.HasNavigatedTo || page.Parent is Window))
17+
if (page.HideSoftInputOnTapped && page.HasNavigatedTo)
1818
{
1919
if (!_contentPages.Contains(page))
2020
{

src/Controls/src/Core/ContentPage/HideSoftInputOnTappedChanged/HideSoftInputOnTappedChangedManager.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ bool FeatureEnabled
1313
{
1414
foreach (var page in _contentPages)
1515
{
16-
if (page.HideSoftInputOnTapped && (page.HasNavigatedTo || page.Parent is Window))
16+
if (page.HideSoftInputOnTapped && page.HasNavigatedTo)
1717
return true;
1818
}
1919
return false;

src/Controls/tests/TestCases.HostApp/Issues/Issue26792.cs

Lines changed: 0 additions & 40 deletions
This file was deleted.

src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue26792.cs

Lines changed: 0 additions & 29 deletions
This file was deleted.

0 commit comments

Comments
 (0)