Browse Source
fix: the bug in the lock method of the vbenModal component (#6648)
pull/6667/head
panda7
9 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
5 additions and
2 deletions
-
packages/@core/ui-kit/popup-ui/src/modal/modal-api.ts
|
|
|
@ -107,7 +107,6 @@ export class ModalApi { |
|
|
|
this.store.setState((prev) => ({ |
|
|
|
...prev, |
|
|
|
isOpen: false, |
|
|
|
submitting: false, |
|
|
|
})); |
|
|
|
} |
|
|
|
} |
|
|
|
@ -162,7 +161,11 @@ export class ModalApi { |
|
|
|
} |
|
|
|
|
|
|
|
open() { |
|
|
|
this.store.setState((prev) => ({ ...prev, isOpen: true })); |
|
|
|
this.store.setState((prev) => ({ |
|
|
|
...prev, |
|
|
|
isOpen: true, |
|
|
|
submitting: false, |
|
|
|
})); |
|
|
|
} |
|
|
|
|
|
|
|
setData<T>(payload: T) { |
|
|
|
|