mirror of
https://github.com/youzan/vant.git
synced 2025-10-16 16:04:04 +00:00
fix(Popup): should not auto close on deactivated if not using teleport (#10706)
This commit is contained in:
@@ -264,7 +264,8 @@ export default defineComponent({
|
|||||||
});
|
});
|
||||||
|
|
||||||
onDeactivated(() => {
|
onDeactivated(() => {
|
||||||
if (props.show) {
|
// teleported popup should be closed when deactivated
|
||||||
|
if (props.show && props.teleport) {
|
||||||
close();
|
close();
|
||||||
shouldReopen = true;
|
shouldReopen = true;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user