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.

[Ionic 4 - beta1] ion-label and ion-input are presented in a strange way after upgrading from version 4.0.0-beta.0 to 4.0.0-beta.

See original GitHub issue

Bug Report

Ionic Info Run ionic info from a terminal/cmd prompt and paste the output below.


Ionic:
   ionic (Ionic CLI)          : 4.0.3 (C:\Users\...\AppData\Roaming\npm\node_modules\ionic)
   Ionic Framework            : @ionic/angular 4.0.0-beta.1
   @angular-devkit/core       : 0.7.0-rc.1
   @angular-devkit/schematics : 0.7.0-rc.1
   @angular/cli               : 6.0.8
   @ionic/ng-toolkit          : 1.0.0-rc.11
   @ionic/schematics-angular  : 1.0.0-rc.11

Capacitor:

   capacitor (Capacitor CLI) : 1.0.0-beta.3
   @capacitor/core           : 1.0.0-beta.3

System:

   NodeJS : v8.9.4 (C:\Program Files\nodejs\node.exe)
   npm    : 5.6.0
   OS     : Windows 10

Describe the Bug After upgrading from version 4.0.0-beta.0 to 4.0.0-beta.1, ion-item components that have ion-label with ion-input are in the wrong view. Something in beta1 broke.

Steps to Reproduce Steps to reproduce the behavior:

  1. create a new project with ionic-cli and upgrade ionic-angular 4.0.0-beta.1
  2. add on some page: ... <ion-item style="border:1px solid gray"> <ion-label position="floating">test</ion-label> <ion-input type="text" style="border:1px solid lightskyblue" > </ion-input> </ion-item> ...

obs: I added borders only for debugging

  1. see the error in the placement of the ion-label (placeholder) and the ion-input beta1

Expected Behavior that works just like the previous versions beta0

Additional Context these are my dependencies on package.json … β€œdependencies”: { β€œ@angular/animations”: β€œ6.0.9”, β€œ@angular/common”: β€œ6.0.9”, β€œ@angular/core”: β€œ6.0.9”, β€œ@angular/forms”: β€œ6.0.9”, β€œ@angular/http”: β€œ6.0.9”, β€œ@angular/platform-browser”: β€œ6.0.9”, β€œ@angular/platform-browser-dynamic”: β€œ6.0.9”, β€œ@angular/router”: β€œ6.0.9”, β€œ@angular/service-worker”: β€œ6.0.9”, β€œ@capacitor/core”: β€œ1.0.0-beta.3”, β€œ@ionic-native/core”: β€œ5.0.0-beta.14”, β€œ@ionic-native/screen-orientation”: β€œ5.0.0-beta.14”, β€œ@ionic-native/splash-screen”: β€œ5.0.0-beta.14”, β€œ@ionic-native/status-bar”: β€œ5.0.0-beta.14”, β€œ@ionic/angular”: β€œ4.0.0-beta.1”, β€œ@ionic/ng-toolkit”: β€œ1.0.0-rc.11”, β€œ@ionic/schematics-angular”: β€œ1.0.0-rc.11”, β€œclasslist.js”: β€œ^1.1.20150312”, β€œcore-js”: β€œ^2.5.3”, β€œmoment”: β€œ^2.22.1”, β€œrxjs”: β€œ6.2.1”, β€œzone.js”: β€œ^0.8.26” }, β€œdevDependencies”: { β€œ@angular-devkit/architect”: β€œ0.7.0-rc.1”, β€œ@angular-devkit/build-angular”: β€œ0.7.0-rc.1”, β€œ@angular-devkit/core”: β€œ0.7.0-rc.1”, β€œ@angular-devkit/schematics”: β€œ0.7.0-rc.1”, β€œ@angular/cli”: β€œ6.0.8”, β€œ@angular/compiler”: β€œ6.0.9”, β€œ@angular/compiler-cli”: β€œ6.0.9”, β€œ@angular/language-service”: β€œ6.0.9”, β€œ@angular/pwa”: β€œ^0.6.8”, β€œ@capacitor/android”: β€œ1.0.0-beta.3”, β€œ@capacitor/cli”: β€œ1.0.0-beta.3”, β€œ@ionic/lab”: β€œ1.0.0-rc.6”, β€œ@types/jasmine”: β€œ~2.8.6”, β€œ@types/jasminewd2”: β€œ~2.0.3”, β€œ@types/moment”: β€œ^2.13.0”, β€œ@types/moment-timezone”: β€œ^0.5.5”, β€œ@types/node”: β€œ~10.5.2”, β€œcodelyzer”: β€œ~4.4.2”, β€œjasmine-core”: β€œ~2.99.1”, β€œjasmine-spec-reporter”: β€œ~4.2.1”, β€œkarma”: β€œ~2.0.2”, β€œkarma-chrome-launcher”: β€œ~2.2.0”, β€œkarma-coverage-istanbul-reporter”: β€œ~2.0.0”, β€œkarma-jasmine”: β€œ~1.1.1”, β€œkarma-jasmine-html-reporter”: β€œ^0.2.2”, β€œprotractor”: β€œ~5.4.0”, β€œts-node”: β€œ~7.0.0”, β€œtslint”: β€œ~5.11.0”, β€œtypescript”: β€œ~2.7.2” } …

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:9
  • Comments:9 (2 by maintainers)

github_iconTop GitHub Comments

5reactions
Nightbrcommented, Aug 3, 2018

Same here. Seems to be related to position="floating"

ionic info

Ionic:

   ionic (Ionic CLI)          : 4.0.1 (/home/nightbringer/.nvm/versions/node/v8.11.3/lib/node_modules/ionic)
   Ionic Framework            : @ionic/angular 4.0.0-beta.1
   @angular-devkit/core       : 0.7.0-rc.3
   @angular-devkit/schematics : 0.7.0-rc.3
   @angular/cli               : 6.0.8
   @ionic/ng-toolkit          : 1.0.0
   @ionic/schematics-angular  : 1.0.0

Cordova:

   cordova (Cordova CLI) : 8.0.0
   Cordova Platforms     : none

System:

   Android SDK Tools : 26.1.1
   NodeJS            : v8.11.3 (/home/nightbringer/.nvm/versions/node/v8.11.3/bin/node)
   npm               : 5.6.0
   OS                : Linux 4.15

Environment:

   ANDROID_HOME : /home/nightbringer/Android/Sdk
1reaction
manucorporatcommented, Aug 7, 2018

should be fixed in next beta, thanks to: https://github.com/ionic-team/stencil/pull/1000

Read more comments on GitHub >

github_iconTop Results From Across the Web

ionic 4 label display issue - Stack Overflow
but i think i found the solution: app is still running with 4.0.0-beta.1, i will try update to 4.0.0-beta.18. – AnDoDri. Sep 18,...
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 ... The input component is meant for text type...
Read more >
My Method for Upgrading from Ionic 3 to Ionic 4 - Josh Morony
Whenever dealing with a major version upgrade, I prefer to take the "from scratch" approach and port existing apps over, rather than trying...
Read more >
Label - Ionic API Documentation
Labels are placed inside of an ion-item element and can be used to describe an ion-input , ion-toggle , ion-checkbox , and more....
Read more >
The New Datetime Component In Ionic - Ionic Blog
Get the backstory on the changes to the new Ionic Datetime component and how you can upgrade to use the new verion today....
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