mirror of
https://github.com/youzan/vant.git
synced 2025-10-15 23:55:08 +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(() => {
|
||||
if (props.show) {
|
||||
// teleported popup should be closed when deactivated
|
||||
if (props.show && props.teleport) {
|
||||
close();
|
||||
shouldReopen = true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user