Skip to content

bug: v7, floating/stacked label select popover does not take up full width #26903

@farisfaisalthena

Description

@farisfaisalthena

Prerequisites

Ionic Framework Version

  • v4.x
  • v5.x
  • v6.x
  • v7.x
  • Nightly

Current Behavior

Using interface="popover" will result in the options not taking the whole width compared to previous version (V6)

Screenshot 2023-03-03 at 10 16 59 AM

Expected Behavior

It should take the while width

Steps to Reproduce

Copy the following code

In HTML

 <ion-item lines="inset" mode="md">
          <ion-select justify="space-between" label="Type" labelPlacement="stacked" interface="popover"
              [(ngModel)]="filterObject.type">
                    <ion-select-option *ngFor="let r of typeOpts" [value]="r">
                      {{ r }}
                    </ion-select-option>
                  </ion-select>
                </ion-item>

In TS

typeOpts = ['Battle Royale', 'Late Game'];
  filterObject = {
    type: 'Battle Royale',
    showScoring: false
  }

Code Reproduction URL

No response

Ionic Info

Ionic:

Ionic CLI : 6.19.1 (/usr/local/lib/node_modules/@ionic/cli)
Ionic Framework : not installed
@angular-devkit/build-angular : 15.2.1
@angular-devkit/schematics : 15.2.1
@angular/cli : 15.2.1
@ionic/angular-toolkit : 8.0.0

Capacitor:

Capacitor CLI : 4.7.0
@capacitor/android : 4.7.0
@capacitor/core : 4.7.0
@capacitor/ios : 4.7.0

Utility:

cordova-res : 0.15.4
native-run (update available: 1.7.1) : 1.6.0

System:

NodeJS : v16.17.0 (/usr/local/bin/node)
npm : 8.15.0
OS : macOS

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions