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: ion-input type="date" wrong height if empty

See original GitHub issue

Bug Report

The default height of ion-input type=“date” without value is too small. Should be the same height with or without value.

Ionic version:

[x] 4.4.0

Current behavior: If ion-input has no value, the default height is too small. It “grows” if you enter a value which makes the UI look bad.

Expected behavior: ion-input height is the same with or without value

Related code:

<ion-item no-padding>
    <ion-label position="stacked">Date</ion-label>
    <ion-input type="date"></ion-input>
</ion-item>

Other information: bug_input_date_size

Ionic info:

Ionic:

   ionic (Ionic CLI)             : 4.12.0 (/usr/local/lib/node_modules/ionic)
   Ionic Framework               : @ionic/angular 4.4.0
   @angular-devkit/build-angular : 0.12.4
   @angular-devkit/schematics    : 7.2.4
   @angular/cli                  : 7.2.4
   @ionic/angular-toolkit        : 1.4.1

Cordova:

   cordova (Cordova CLI) : 9.0.0 (cordova-lib@9.0.1)
   Cordova Platforms     : android 8.0.0, ios 5.0.1
   Cordova Plugins       : cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic-webview 2.4.1, (and 12 other plugins)

System:

   Android SDK Tools : 26.1.1 (/Users/pascalgraf/Library/Android/sdk)
   ios-deploy        : 1.9.4
   ios-sim           : 8.0.1
   NodeJS            : v10.14.1 (/usr/local/bin/node)
   npm               : 6.9.0
   OS                : macOS Mojave
   Xcode             : Xcode 10.2.1 Build version 10E1001

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
safaiyehcommented, Sep 13, 2019

Hello! I would like to work on this, just forked the repo locally to check it out.

1reaction
Spinnenzungecommented, Sep 28, 2022

I just checked it quickly in my Project and it does not seem like it

Read more comments on GitHub >

github_iconTop Results From Across the Web

bug: ion-input type="date" wrong height if empty #18267
Bug Report The default height of ion-input type="date" without value is too small. Should be the same height with or without value.
Read more >
ion-input: Custom Input Value Type Styling and CSS Properties
ion -input is a wrapper to the HTML input element, with custom value type styling and ... Helper & error text can be...
Read more >
198959 – input[type=date] with empty value has shrunken height
This is fixable by adding a height to the `::-webkit-date-and-time-value` pseudo element. ``` input::-webkit-date-and-time-value { height: 1.5em ...
Read more >
Not showing placeholder for input type="date" field
I took jbarlow idea, but I added an if in the onblur function so the fields only change its type if the value...
Read more >
Checking if an input is empty with CSS - Zell Liew
You add a placeholder to your input · If the placeholder is hidden, it means the user typed something into the field ·...
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