bug: IonSearchbar double clearn buttons
See original GitHub issuePrequisites
- I have read the Contributing Guidelines.
- I agree to follow the Code of Conduct.
- I have searched for existing issues that already report this problem, without success.
Ionic Framework Version
- v4.x
- v5.x
- v6.x
Current Behavior
when using IonSearchbar in react, two clear buttons show up when viewing on Crhome.
both buttons are functional. it seems to have been reported before in #20083 but was closed due to being stale.
Expected Behavior
only one close button should be shown
Steps to Reproduce
import {
IonSearchbar
} from '@ionic/react';
export default function TagPicker(){
return (
<>
<IonSearchbar
onIonChange={(event) => {console.log(event.detail.value);}}
debounce={1000}
/>
tag picker
</>
);
}
Code Reproduction URL
No response
Ionic Info
Ionic:
Ionic CLI : 6.17.0
Utility:
cordova-res : 0.15.3
native-run : not installed globally
System:
NodeJS : v14.15.4
npm : 6.14.10
OS : Linux 5.11
Additional Information
No response
Issue Analytics
- State:
- Created 2 years ago
- Comments:16 (7 by maintainers)
Top Results From Across the Web
bug: Multiple clear icons in searchbar · Issue #20083 - GitHub
After digging in, I understood that one of the icons was given by the browser because input type="search" is being used by ionic...
Read more >ion-searchbar - Ionic Framework
A clear button is displayed when a searchbar has a value or upon entering input in the searchbar's text field. Clicking on the...
Read more >Ionic 5-Clear the searchbox text when clicking the reset button
I am working with ionic 5 .. I have a ionsearch to search the contents from a list. Then i have another reset...
Read more >Ionic 5 - 07 Ion-Search - YouTube
Searchbars represent a text field that can be used to search ... GitHub Link - https://github.com/techassembler/ Ionic -5-Angular/tree/master/.
Read more >ionic/www/30-es2015.js.map ... - GitLab
Quickly and easily edit multiple files in your project. ... Edit this file only.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
thanks. yes I think that fixes it. I think what happened was I started with a blank starter and just trashed the App.tsx, partially because we’re not using typescript
it’s proprietary code. let me see if I can run a blank react-redux-firebase project and reproduce the issue with that.