mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-18 22:11:43 +01:00
fix(Slideover): wait for transition to complete to reset state (#1624)
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user