bug: Multiple Floating Label Inputs are Very Buggy
See original GitHub issueShort description of the problem:
On an ios device with a long form that makes ion-content long enough to scroll. Focus on a input with floating labels and the input bounces. This does not occur while testing the app in chrome or safari browsers.
Also experiencing weird behavior while scrolling and focused in an input.
What behavior are you expecting?
Normal floating label behavior after the interface has scrolled to the focused input. I think the css transform while scrolling is causing issues.
Steps to reproduce:
- Add 10 items to a list with a floating label.
- Focus on the elements one after the other from top to bottom.
- Run in ios emulator or on ios device.
<ion-header>
<ion-navbar>
<ion-title>Title</ion-title>
</ion-navbar>
</ion-header>
<ion-content>
<ion-list>
<ion-item>
<ion-label floating>Label</ion-label>
<ion-input type="text"></ion-input>
</ion-item>
<ion-item>
<ion-label floating>Label</ion-label>
<ion-input type="password"></ion-input>
</ion-item>
<ion-item>
<ion-label floating>Label</ion-label>
<ion-input type="text"></ion-input>
</ion-item>
<ion-item>
<ion-label floating>Label</ion-label>
<ion-input type="password"></ion-input>
</ion-item>
<ion-item>
<ion-label floating>Label</ion-label>
<ion-input type="text"></ion-input>
</ion-item>
<ion-item>
<ion-label floating>Label</ion-label>
<ion-input type="password"></ion-input>
</ion-item>
<ion-item>
<ion-label floating>Label</ion-label>
<ion-input type="text"></ion-input>
</ion-item>
<ion-item>
<ion-label floating>Label</ion-label>
<ion-input type="password"></ion-input>
</ion-item>
<ion-item>
<ion-label floating>Label</ion-label>
<ion-input type="text"></ion-input>
</ion-item>
<ion-item>
<ion-label floating>Label</ion-label>
<ion-input type="password"></ion-input>
</ion-item>
<ion-item>
<ion-label floating>Label</ion-label>
<ion-input type="text"></ion-input>
</ion-item>
<ion-item>
<ion-label floating>Label</ion-label>
<ion-input type="password"></ion-input>
</ion-item>
<ion-item>
<ion-label floating>Label</ion-label>
<ion-input type="text"></ion-input>
</ion-item>
<ion-item>
<ion-label floating>Label</ion-label>
<ion-input type="password"></ion-input>
</ion-item>
</ion-list>
</ion-content>
Which Ionic Version? 1.x or 2.x 2.X
Run ionic info
from terminal/cmd prompt: (paste output below)
Cordova CLI: 6.1.1
Gulp version: CLI version 1.2.1
Gulp local: Local version 3.9.1
Ionic Framework Version: 2.0.0-beta.10
Ionic CLI Version: 2.0.0-beta.32
Ionic App Lib Version: 2.0.0-beta.18
ios-deploy version: 1.8.5
ios-sim version: 5.0.8
OS: Mac OS X El Capitan
Node Version: v6.1.0
Xcode version: Xcode 7.3.1 Build version 7D1014
Issue Analytics
- State:
- Created 7 years ago
- Comments:13 (5 by maintainers)
Top Results From Across the Web
bug: Multiple Floating Label Inputs are Very Buggy · Issue #7318
On an ios device with a long form that makes ion-content long enough to scroll. Focus on a input with floating labels and...
Read more >Developers - bug: Multiple Floating Label Inputs are Very Buggy -
On an ios device with a long form that makes ion-content long enough to scroll. Focus on a input with floating labels and...
Read more >Ionic input with floating label buggy problem!
I have a problem. I am struggling to implement floating label with ion input component. But every time I test on google chrome...
Read more >Float labels are problematic - Adam Silver
Float labels were designed to address the problem with using placeholder labels – that the label disappears as soon as the user starts...
Read more >How to add 2nd floating label to input when using 1 div only in ...
Each input + label combo needs to be within its own .form-floating class. Having multiple inputs in the same div was causing that...
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 Free
Top 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
This works for me:
.input-cover { position: static!important; }
+1, @brunoosilva temporary fix resolved the issue for me. Thanks