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.

Wrong border-bottom of the last <ion-input> inside a <ion-list>

See original GitHub issue

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

I’m submitting a … (check one with “x”) [x] bug report [ ] feature request

Current behavior: The last input on a form inside a <ion-list> shows at longer boder-bottom than the previous ones in Android.

Expected behavior: All of them should be the same.

Steps to reproduce:

Use this page template to reproduce the issue:

<ion-header>
  <ion-navbar>
    <ion-title>Form test</ion-title>
  </ion-navbar>
</ion-header>

<ion-content>
  <ion-list>
    <ion-item>
      <ion-label>First input</ion-label>
      <ion-input></ion-input>
    </ion-item>
    <ion-item>
      <ion-label>Another input</ion-label>
      <ion-input></ion-input>
    </ion-item>
    <ion-item>
      <ion-label>One more input</ion-label>
      <ion-input></ion-input>
    </ion-item>
  </ion-list>
</ion-content>

You get something like the image below (highlighted what I’m referring to):

ionic-style-issue

Related code:

https://stackblitz.com/edit/ionic-idg4tc - Check pages/home/home.html.

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

cli packages: (C:\Users\Ivan.Perez\AppData\Roaming\npm\node_modules)

    @ionic/cli-utils  : 1.13.1
    ionic (Ionic CLI) : 3.13.2

global packages:

    cordova (Cordova CLI) : 7.0.1

local packages:

    @ionic/app-scripts : 1.3.12
    Cordova Platforms  : none
    Ionic Framework    : ionic-angular 3.5.0

System:

    Node : v6.11.0
    npm  : 3.10.10
    OS   : Windows 7

Misc:

    backend : legacy

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:4
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
giovannipdscommented, Jun 4, 2018

Like this:

<ion-list>

  <ion-item>
    <ion-label floating>Email</ion-label>
    <ion-input required type="email"></ion-input>
  </ion-item>

  <ion-item>
    <ion-label floating>Password</ion-label>
    <ion-input required type="password"></ion-input>
  </ion-item>

  <div hidden></div>

</ion-list>
1reaction
Beni90commented, Feb 8, 2018

Guys, is there any solution for this? This is quite annoying!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Wrong border-bottom of the last <ion-input> inside a <ion-list>
Current behavior: The last input on a form inside a <ion-list> shows at longer boder-bottom than the previous ones in Android. Expected behavior ......
Read more >
How to remove item-inner border in ionic - Stack Overflow
The following is my solution, not sure whether it is work for all the cases, but at least for my project it is...
Read more >
Remove bottom border from <ion-item> in Ionic 4
I'm trying to create a form that users will enter data into, and I'm using elements to contain the label and input for...
Read more >
ion-item top and bottom borders - CodePen
@ionic/core@latest https://ionicframework.com/docs/ --> ... <ion-list>. 13. <ion-item>. 14. <ion-icon slot="start" name="trash"></ion-icon>.
Read more >
Remove border from ion-item ionic 4
Hey @daveshirman, so the issue here is that the ion-item-group looks for the .item:last-child and removes the border when it finds it. Since...
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