Skip to content

regression for input select with floating label #12068

Closed

Description

@bogomips

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 

Activity

  1. efstathiosntonas commented on Jun 17, 2017

    @efstathiosntonas

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

  2. manucorporat commented on Jun 19, 2017

    @manucorporat
    Contributor

    Can you provide some source code that reproduces the issue?

  3. efstathiosntonas commented on Jun 19, 2017

    @efstathiosntonas

    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

  4. theHellyar commented on Jul 17, 2017

    @theHellyar

    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.

  5. mieszczans commented on Feb 23, 2018

    @mieszczans

    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.

  6. ionitron-bot commented on Sep 1, 2018

    @ionitron-bot

    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.

  7. locked and limited conversation to collaborators on Sep 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions