diff --git a/packages/nc-gui/components/general/EmojiIcons.vue b/packages/nc-gui/components/general/EmojiIcons.vue index 9608d63123..9b6b463304 100644 --- a/packages/nc-gui/components/general/EmojiIcons.vue +++ b/packages/nc-gui/components/general/EmojiIcons.vue @@ -3,7 +3,7 @@ import { Icon } from '@iconify/vue' import InfiniteLoading from 'v3-infinite-loading' const emit = defineEmits(['selectIcon']) -const search = $ref('') +let search = $ref('') // todo: move to utils const icons = [ @@ -1854,6 +1854,11 @@ const load = () => { toIndex = filteredIcons.value.length } } + +const selectIcon = (icon: string) => { + search = '' + emit('selectIcon', `emojione:${icon}`) +}