Closed henkkelder closed 3 years ago
Thanks for the issue. By default, the clear button hides whenever the searchbar loses focus; however, you can customize this behavior by setting showClearButton="always"
. This will result in the clear button always being shown if there is text in the input, regardless of focus state.
Can you give that property a try and let me know if it resolves the issue?
<ion-searchbar showClearButton="always"></ion-searchbar>
edit: If it does help, it might make sense to update the default showClearButton
behavior to always
in Framework v6. It's pretty hard to use the clear button with VoiceOver on without it as you mentioned.
Wow I did not expect this to solve the problem but it does. See the attached image. After selecting the clearbutton the focus stays and the button is selectable again. Thank you!
Great, I am glad this fixes the issue. I think it makes sense for us to update the default behavior for showClearButton
to always
for Framework v6. I am going to close this since the original issue is resolved, but I will talk with the team about updating the default for Framework v6. Thanks!
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.
Bug Report
Ionic version: [ ] 4.x [x] 5.x
Current behavior: When using voice over on IOS on a ion-searchbar the reset button is unusable. When the X is being selected the upper half of the complete input is selected, but it is hardly posible to select that. Even for a person that can see.
Expected behavior: Selecting the reset X should select the X itself.
Steps to reproduce: Create a simple ionic / angular app with a searchbar and run it on an ipad. Related code:
See the 'Opwekkingsliederen' app in the App Store. Select 'Aankopen' (purchases) from the menu and select 'de gratis teksten' (free songlyrics). Use the button 'haal op' to download and install the songs. Then goto to the main page. Activate the voice over on the ipad and go back to the app. Press the search icon type some letters and try to use the reset X.
Other information:
Ionic info: