Skip to content

SearchBar IsEnabled property not functioning #14566

@CRebeloCSS

Description

@CRebeloCSS

Description

We are trying to implement a search bar that is enabled in certain situations, and disabled in others. As well as using the property to dismiss the keyboard on search. Although adjusting the "IsEnabled" property of a SearchBar does not seem to change the functionality of the Control. Even when "IsEnabled" is set to false, the search bar is fully functional and allows user input.
SearchBarEnabledIssue

Steps to Reproduce

  1. Create a new .NET Maui project
  2. Create a SearchBar Control
  3. Set the IsEnabled property to false

Link to public reproduction project repository

https://github.com/CRebeloCSS/SearchBarEnabledBug

Version with bug

7.0 (current)

Last version that worked well

Unknown/Other

Affected platforms

iOS, Android

Affected platform versions

iOS 16.2, Android 12.0

Did you find any workaround?

No for the moment, for the use of dismissing the keyboard on search, setting the "IsVisible" to false, then back to true immediately after, will dismiss the keyboard, but the user can still interact with the search bar, this does not appear to work on iOS devices.

Relevant log output

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions