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-segment on android

See original GitHub issue

Bug Report

Ionic version: [x] 5.x

Current behavior: only 1st ion-segment-button within ion-segment is clickable on android… on ios it is working fine

Expected behavior: all <ion-segment-button> should be clickable on android

Steps to reproduce: install ionic 5 and run on android

  <ion-toolbar>
    <ion-segment value="general" (ionChange)="segmentChanged($event)">
      <ion-segment-button value="general">
        <ion-label>General</ion-label>
      </ion-segment-button>
      <ion-segment-button value="notifications">
        <ion-label>Notification</ion-label>
      </ion-segment-button>
    </ion-segment>
  </ion-toolbar>

Related code:

insert short code snippets here

Other information:

Ionic info:

Ionic:

   Ionic CLI                     : 5.4.16
   Ionic Framework               : @ionic/angular 5.0.0
   @angular-devkit/build-angular : 0.803.23
   @angular-devkit/schematics    : 8.1.3
   @angular/cli                  : 8.1.3
   @ionic/angular-toolkit        : 2.1.2

Cordova:

   Cordova CLI       : 9.0.0 (cordova-lib@9.0.1)
   Cordova Platforms : android 8.1.0, browser 6.0.0, ios 5.1.1
   Cordova Plugins   : cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 4.1.3, (and 15 other plugins)

Utility:

   cordova-res (update available: 0.9.0) : 0.6.0
   native-run (update available: 0.3.0)  : 0.2.4

System:

   Android SDK Tools : 26.1.1 (/Users/haraldwiesinger/Library/Android/sdk)
   ios-deploy        : 1.10.0
   ios-sim           : 8.0.2
   NodeJS            : v10.15.3 (/usr/local/bin/node)
   npm               : 6.13.4
   OS                : macOS Catalina
   Xcode             : Xcode 11.3.1 Build version 11C504

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:50 (17 by maintainers)

github_iconTop GitHub Comments

5reactions
liamdebeasicommented, Feb 14, 2020

Yes, I was able to reproduce this issue. We are investigating a fix.

2reactions
gminhanelicommented, Feb 14, 2020

have result?

Read more comments on GitHub >

github_iconTop Results From Across the Web

bug: ion-segment on android · Issue #20466 - GitHub
Ionic version: [x] 5.x ; Current behavior: only 1st ion-segment-button within ion-segment is clickable on android.. on ios it is working fine.
Read more >
Ion-segment issues - ionic-v3
I can confirm removing ChangeDetectionStrategy.OnPush from @Component makes it work. I guess somewhere in changeDetection there is a bug?
Read more >
Is there a way to make ion-segment look the same on both iOS ...
I would like the ion-segment to look like the android version on both platforms but currently, they still look different. ionic-framework ...
Read more >
Creating a Shrinking Header for Segments in Ionic
In this tutorial, we walk through how to create a shrinking header component for a segment in Ionic.
Read more >
How to Build an Ionic 4 App with SQLite Database & Queries ...
... and for this we can use an ion-segment with two views. ... ionic cordova build android # Install the APK with adb...
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