fix: on reply open textarea and focus

This commit is contained in:
Shariq Ansari 2024-04-21 14:25:10 +05:30
parent f9317708da
commit 9157272625

View File

@ -68,7 +68,7 @@ import IconPicker from '@/components/IconPicker.vue'
import SmileIcon from '@/components/Icons/SmileIcon.vue'
import { createResource, Textarea, FileUploader, Dropdown } from 'frappe-ui'
import FeatherIcon from 'frappe-ui/src/components/FeatherIcon.vue'
import { ref, computed, nextTick } from 'vue'
import { ref, computed, nextTick, watch } from 'vue'
const props = defineProps({
doctype: String,
@ -158,5 +158,11 @@ function uploadOptions(openFileSelector) {
]
}
watch(() => reply.value, (value) => {
if (value?.message) {
show()
}
})
defineExpose({ show })
</script>