fix: edit mode not opening for task modal

This commit is contained in:
Shariq Ansari 2024-07-01 13:10:44 +05:30
parent 4695af0877
commit 64b8766401

View File

@ -205,14 +205,7 @@ async function updateTask() {
show.value = false show.value = false
} }
onMounted(() => { function render() {
_task.value = { ...props.task }
})
watch(
() => show.value,
(value) => {
if (!value) return
editMode.value = false editMode.value = false
nextTick(() => { nextTick(() => {
title.value.el.focus() title.value.el.focus()
@ -222,7 +215,13 @@ watch(
} }
}) })
} }
)
onMounted(() => render())
watch(show, (value) => {
if (!value) return
render()
})
</script> </script>
<style scoped> <style scoped>