reactjs - 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>
解决方案
推荐阅读
- javascript - 什么是 firebase.database()
- mysql - PHPMyAdmin 崩溃
- corda - 需要为每个构建生成节点信息文件,即使 node.conf 保持不变
- dart - Dart StreamController 有两个参数
- javascript - 模态表单上的 jQuery submit() vc click()
- kotlin - Kotlin 的作用域——暴露单一入口点
- asp.net-core - Cookie 忽略 DotNet Core 中的 CORS 设置
- ckeditor - Ckeditor 3 - 选择工具栏按钮时单击插入元素
- wpf - WPF 中的复杂标题样式
- c# - 在树视图中更改节点颜色