首页 > 解决方案 > IonSelect 不想显示 IonSelectOption 警报

问题描述

我不会使用禁用,但我希望 IonicSelect 不会在点击时触发,因为从现在开始,当它点击界面弹出警报选项时,我想显示任何弹出窗口

<IonLabel>Payee Contact Number</IonLabel>
        <IonSelect
          id="payee-country-calling-code-selection"
          className={styles.selectSection}
          interface="popover"
          value={countryCallingCode}
          onIonChange={onCountryCallingCodeChange}
          ref={null}
        >
          {countryCodes.map((c) => (
            <IonSelectOption key={c.name} value={c.digit}>{`+${c.digit}`}</IonSelectOption>
          ))}
        </IonSelect>

标签: reactjstypescriptionic-framework

解决方案


推荐阅读