bug: ionFocus event for searchbar causes icon to move out of place
See original GitHub issueBug 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:
- Created 3 years ago
- Reactions:2
- Comments:5 (1 by maintainers)
Top 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 >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
Hey @liamdebeasi any idea on when to expect a fix?
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.