Removed resetSkeleton on popover dismiss
As the skeleton is already reset when it opens, it's redundant to reset it while it's not being displayed
This commit is contained in:
@@ -32,14 +32,6 @@ function openEventCreatePopover() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Watch the popover state
|
|
||||||
// And reset the skeleton if it has been dismissed
|
|
||||||
watch(popoverOpen, (hasOpened, _o) => {
|
|
||||||
if (!hasOpened) {
|
|
||||||
resetSkeleton()
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
async function handleSubmit() {
|
async function handleSubmit() {
|
||||||
try {
|
try {
|
||||||
await submitSkeleton()
|
await submitSkeleton()
|
||||||
|
|||||||
Reference in New Issue
Block a user