fix: edit mode not opening for task modal
This commit is contained in:
parent
4695af0877
commit
64b8766401
@ -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>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user