mirror of
https://github.com/youzan/vant.git
synced 2025-10-19 01:54:48 +00:00
fix(Popup): should reopen when activated (#5286)
This commit is contained in:
@@ -75,8 +75,9 @@ export const PopupMixin = {
|
||||
|
||||
/* istanbul ignore next */
|
||||
activated() {
|
||||
if (this.value) {
|
||||
this.open();
|
||||
if (this.shouldReopen) {
|
||||
this.$emit('input', true);
|
||||
this.shouldReopen = false;
|
||||
}
|
||||
},
|
||||
|
||||
@@ -90,7 +91,10 @@ export const PopupMixin = {
|
||||
|
||||
/* istanbul ignore next */
|
||||
deactivated() {
|
||||
this.close();
|
||||
if (this.value) {
|
||||
this.close();
|
||||
this.shouldReopen = true;
|
||||
}
|
||||
},
|
||||
|
||||
methods: {
|
||||
|
Reference in New Issue
Block a user