fix: on reply open textarea and focus
This commit is contained in:
parent
f9317708da
commit
9157272625
@ -68,7 +68,7 @@ import IconPicker from '@/components/IconPicker.vue'
|
|||||||
import SmileIcon from '@/components/Icons/SmileIcon.vue'
|
import SmileIcon from '@/components/Icons/SmileIcon.vue'
|
||||||
import { createResource, Textarea, FileUploader, Dropdown } from 'frappe-ui'
|
import { createResource, Textarea, FileUploader, Dropdown } from 'frappe-ui'
|
||||||
import FeatherIcon from 'frappe-ui/src/components/FeatherIcon.vue'
|
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({
|
const props = defineProps({
|
||||||
doctype: String,
|
doctype: String,
|
||||||
@ -158,5 +158,11 @@ function uploadOptions(openFileSelector) {
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
watch(() => reply.value, (value) => {
|
||||||
|
if (value?.message) {
|
||||||
|
show()
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
defineExpose({ show })
|
defineExpose({ show })
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user