Skip to content

bug: IonItem's ionic component children inside a div doesn't work well #25018

@XueMeijing

Description

@XueMeijing

Prerequisites

Ionic Framework Version

  • v4.x
  • v5.x
  • v6.x

Current Behavior

The IonItem slot can't resolve my needs, meanwhile it seems that i cant change item-inner display flex to block, so i have to add a div in IonItem and append ionic component in this div. But if i do that, i cant click IonCheck button.

QQ20220330-172955-HD.mp4

Expected Behavior

i want to click the IonCheckBox

Steps to Reproduce

<IonPage>
      <IonContent>
        <IonItem>
          <div>
            <IonCheckbox />
            <IonSelect value={'AAA'} style={{width: 190}}>
              <IonSelectOption>AAA</IonSelectOption>
              <IonSelectOption>BBB</IonSelectOption>
              <IonSelectOption>CCC</IonSelectOption>
            </IonSelect>
          </div>
        </IonItem>
      </IonContent>
    </IonPage>

Code Reproduction URL

No response

Ionic Info

Ionic:

Ionic CLI : 6.18.1

Utility:

cordova-res : not installed globally
native-run : not installed globally

System:

NodeJS : v10.24.1
npm : 6.14.12
OS : macOS Big Sur

─────────────────────────────────────────────────

 Ionic CLI update available: 6.18.1 → 6.19.0
      Run npm i -g @ionic/cli to update

─────────────────────────────────────────────────

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions