Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

regression for input select with floating label #12068

Closed
bogomips opened this issue Jun 16, 2017 · 6 comments
Closed

regression for input select with floating label #12068

bogomips opened this issue Jun 16, 2017 · 6 comments

Comments

@bogomips
Copy link

Ionic version: (check one with "x")
[ ] 1.x (For Ionic 1.x issues, please use https://github.com/ionic-team/ionic-v1)
[ ] 2.x
[X ] 3.x

I'm submitting a ... (check one with "x")
[X ] bug report
[ ] feature request
[ ] support request => Please do not submit support requests here, use one of these channels: https://forum.ionicframework.com/ or http://ionicworldwide.herokuapp.com/

Current behavior:
After the user completes his choice, the floating label returns back over the user's input.

Expected behavior:
the label has to remain "up"

Ionic info: (run ionic info from a terminal/cmd prompt and paste output below):

global packages:

    @ionic/cli-utils : 1.4.0
    Cordova CLI      : 7.0.1 
    Ionic CLI        : 3.4.0

local packages:

    @ionic/app-scripts              : 1.3.7
    @ionic/cli-plugin-cordova       : 1.4.0
    @ionic/cli-plugin-ionic-angular : 1.3.1
    Cordova Platforms               : android 6.1.2 browser 4.1.0
    Ionic Framework                 : ionic-angular 3.4.0

System:

    Node       : v7.7.1
    OS         : Linux 4.10
    Xcode      : not installed
    ios-deploy : not installed
    ios-sim    : not installed
    npm        : 4.1.2 
@efstathiosntonas
Copy link

same here, using 3.4.0, label floats on top of the element when input has some text.

@manucorporat
Copy link
Contributor

Can you provide some source code that reproduces the issue?

@efstathiosntonas
Copy link

efstathiosntonas commented Jun 19, 2017

nothing special:

        <ion-label stacked>Gender</ion-label>
        <ion-select okText="ΟΚ" cancelText="Cancel" formControlName="selectedGender" multiple="false" [(ngModel)]="petGender">
          <ion-option>Male</ion-option>
          <ion-option>Female</ion-option>
        </ion-select>

demo:

source

@theHellyar
Copy link

theHellyar commented Jul 17, 2017

This is till an issue in 3.5.3

Use Floating input with type="number" then enter any non number character and it will overlap.

If you only enter numbers then it will function as desired but I assume that anything that breaks the type category is what breaks it.

@mieszczans
Copy link

It's because you did not contain ion-input and ion-label in ion-item. Inside that container everything work great. So I don't know if it should work like that.

@ionitron-bot
Copy link

ionitron-bot bot commented Sep 1, 2018

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.

@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Sep 1, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants