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: Multiple clear icons in searchbar

See original GitHub issue

When using the ion-searchbar like so, <ion-searchbar id="main-search" show-cancel-button="never" animated></ion-searchbar>

There are 2 clear icons shown like this when typing into the searchbar like this:

Screenshot from 2019-12-12 19-43-16

After digging in, I understood that one of the icons was given by the browser because input type=“search” is being used by ionic with inputmode as search thereby the browser gives a default clearing icon by itself.

In addition to this, Ionic also adds a clear icon when using searchbar making it 2 clear icons.

In any case, only one clear icon must be displayed. Any ideas on how I can go ahead with this?

Currently, I am solving this by explicitly setting the type as text like this:

<ion-searchbar id="main-search" inputmode="search" type="text" show-cancel-button="never" animated></ion-searchbar>

Thanks.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
tvvigneshcommented, Dec 16, 2019

@liamdebeasi I remember getting this error in the browser (when running serving the app directly from www folder). Don’t remember if the same occured in the android device.

0reactions
ionitron-bot[bot]commented, Dec 15, 2020

Thanks for the issue! This issue is being closed due to inactivity. 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.

Thank you for using Ionic!

Read more comments on GitHub >

github_iconTop Results From Across the Web

[Solved] Remove Multiple Google Chrome Icons In Taskbar
The firs foremost easy way to fix this is by unpinning the google chrome icon where you see no grouping and and pin...
Read more >
How to Remove the Annoying Icons in Windows 10's Search Bar
On Windows 10, right-click anywhere on your task to pull up the menu, select “Search” and then uncheck “Show search highlights” to get...
Read more >
Transparent Box Above The Task Bar
Hello, I have been getting a transparent box above my task bar. ... That box is expected to appear when you hover over...
Read more >
Windows 10 bug when removing a shortcut from the toolbar
The Pinned taskbar icons (shortcuts) are stored in one of these folders: %AppData%\Microsoft\Internet Explorer\Quick Launch\User ...
Read more >
8 Ways to Fix Blank Icons on Windows 10 - MakeUseOf
In the Reset this PC window, select your preference of keeping or deleting your files on the computer. Two Different Options to Reset...
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