mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
fix(Popup): should reopen when activated (#5286)
This commit is contained in:
parent
4603e1633c
commit
961999dbbe
@ -75,8 +75,9 @@ export const PopupMixin = {
|
|||||||
|
|
||||||
/* istanbul ignore next */
|
/* istanbul ignore next */
|
||||||
activated() {
|
activated() {
|
||||||
if (this.value) {
|
if (this.shouldReopen) {
|
||||||
this.open();
|
this.$emit('input', true);
|
||||||
|
this.shouldReopen = false;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -90,7 +91,10 @@ export const PopupMixin = {
|
|||||||
|
|
||||||
/* istanbul ignore next */
|
/* istanbul ignore next */
|
||||||
deactivated() {
|
deactivated() {
|
||||||
this.close();
|
if (this.value) {
|
||||||
|
this.close();
|
||||||
|
this.shouldReopen = true;
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user