fix(Slideover): wait for transition to complete to reset state (#1624)

This commit is contained in:
Eugen Istoc
2024-04-05 13:31:29 -04:00
committed by GitHub
parent 9e90d1768b
commit 07a4d13c0f
3 changed files with 13 additions and 4 deletions

View File

@@ -24,11 +24,13 @@ function _useSlideover () {
isOpen.value = true
}
function close () {
async function close () {
if (!slideoverState) return
isOpen.value = false
}
function reset () {
slideoverState.value = {
component: 'div',
props: {}
@@ -53,6 +55,7 @@ function _useSlideover () {
return {
open,
close,
reset,
patch,
isOpen
}