Skip to content

[Android, Windows] SearchBar with IsReadOnly=True still allows text deletion While pressing delete icon #29547

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

Open
TamilarasanSF4853 opened this issue May 16, 2025 · 1 comment · May be fixed by #29592
Assignees
Labels
area-controls-searchbar SearchBar control partner/syncfusion Issues / PR's with Syncfusion collaboration platform/android platform/windows s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working
Milestone

Comments

@TamilarasanSF4853
Copy link
Contributor

Description

When setting IsReadOnly="True" on a SearchBar, the 'X' clear button remains interactive on Android and Windows, enabling users to delete the text content by tapping the 'X' button. This behavior contradicts the expected functionality of the IsReadOnly property, which should prevent any text modification including deletion via the clear button.

Screen.Recording.2025-05-16.at.5.34.22.pm.mov

Expected Behavior

The 'X' clear button should either be hidden or disabled when IsReadOnly is set to True, preventing any text deletion.

Actual Behavior

On Android, the 'X' clear button remains visible and functional, allowing users to delete the text despite the IsReadOnly property being set to True.

Steps to Reproduce

  1. Create a SearchBar with IsReadOnly="True" and initial text or download the sample project SearchBar.zip
  2. Run the app on Android and Windows
  3. Observe that the 'X' clear button is still visible and active
  4. Tap the 'X' button in the SearchBar

Link to public reproduction project repository

No response

Version with bug

9.0.70 SR7

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

No response

Affected platforms

Android, Windows

Affected platform versions

No response

Did you find any workaround?

No response

Relevant log output

@TamilarasanSF4853 TamilarasanSF4853 added the t/bug Something isn't working label May 16, 2025
@dotnet-policy-service dotnet-policy-service bot added the partner/syncfusion Issues / PR's with Syncfusion collaboration label May 16, 2025
@anandhan-rajagopal
Copy link
Contributor

This issue has been verified in Visual Studio 17.14.0 Preview 6.0 with MAUI versions (9.0.60, 9.0.0 & 8.0.100). It can be reproduced on the Windows and Android platforms.

@anandhan-rajagopal anandhan-rajagopal added platform/windows platform/android s/verified Verified / Reproducible Issue ready for Engineering Triage s/triaged Issue has been reviewed area-controls-searchbar SearchBar control labels May 16, 2025
@PureWeen PureWeen added this to the Backlog milestone May 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-controls-searchbar SearchBar control partner/syncfusion Issues / PR's with Syncfusion collaboration platform/android platform/windows s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working
Projects
None yet
4 participants