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: ionFocus event for searchbar causes icon to move out of place

See original GitHub issue

Bug Report

Ionic version:

[x] 5.0.5

Current behavior:

When focusing on the ion-searchbar, the icon moves out of place to the right overlapping the placeholder content.

Expected behavior:

When focusing on the ion-searchbar should move the contents to the left for user to input values in the search bar. This issue does not occur with the other searchbar events I.e ionChange, ionInput, ionBlur etc.

Steps to reproduce:

  • Add a ion-searchbar element that includes the ionFocus event as well as a placeholder for the search bar.
  • Set animated='true' within the search bar element
  • Click on the search bar to go into focus

Related code: https://github.com/narhc8/ngx-image-cropper-repo

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
narhc8commented, Apr 20, 2020

Hey @liamdebeasi any idea on when to expect a fix?

0reactions
ionitron-bot[bot]commented, Jun 22, 2022

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

bug: ionFocus event for searchbar causes icon to move out ...
Current behavior: When focusing on the ion-searchbar , the icon moves out of place to the right overlapping the placeholder content. Expected ...
Read more >
ion-searchbar
Search bars represent a text field that can be used to search through a collection. Learn to input Ion-Search Bar as an icon...
Read more >
Ionic 4+ Angular: search-icon in ion-searchbar and toolbar ...
If I don't use the (ionFocus) method, the search icon is moved correctly. However, I need the (ionFocus) method and I am forced...
Read more >
BUG : mini windows or pop up for search icon on taskbar
When I accidentally want to click some icon on the taskbar. a shadow from this pop up didn't want to quit (?) or...
Read more >
Initializing focus state in React: you might be doing it wrong
You need to move focus away from the element, then back again for React to fire the onFocus handler we supplied and thus...
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