mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
fix(ActionSheet): incorrect behavior when clicking disabled option
This commit is contained in:
parent
9240cd128f
commit
9965986869
@ -98,6 +98,10 @@ export default createComponent({
|
|||||||
);
|
);
|
||||||
|
|
||||||
const onClick = () => {
|
const onClick = () => {
|
||||||
|
if (disabled || loading) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (callback) {
|
if (callback) {
|
||||||
callback(item);
|
callback(item);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user