question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

bug: IonSearchbar double clearn buttons

See original GitHub issue

Prequisites

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.

Screenshot from 2021-08-31 10-56-02

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:closed
  • Created 2 years ago
  • Comments:16 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
jonathan-chincommented, Aug 31, 2021

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

1reaction
jonathan-chincommented, Aug 31, 2021

it’s proprietary code. let me see if I can run a blank react-redux-firebase project and reproduce the issue with that.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found