Skip to content

Commit

Permalink
Fix MauiSearchBar IsEnabled property (dotnet#458)
Browse files Browse the repository at this point in the history
  • Loading branch information
myroot committed Aug 24, 2022
1 parent d91d8b7 commit 2e23a33
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Core/src/Platform/Tizen/MauiSearchBar.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,12 @@ public MauiSearchBar()

public event EventHandler? SearchButtonPressed;

protected override void OnEnabled(bool enabled)
{
base.OnEnabled(enabled);
_entry.IsEnabled = enabled;
}

TSize IMeasurable.Measure(double availableWidth, double availableHeight)
{
if (!string.IsNullOrEmpty(Entry.Text) || !string.IsNullOrEmpty(Entry.Placeholder))
Expand Down

0 comments on commit 2e23a33

Please sign in to comment.