Fix emoji autocomplete
This commit is contained in:
@@ -396,7 +396,11 @@ function AutocompleteInner({
|
|||||||
})
|
})
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (activeFacet?.type === 'emoji' && activeFacet.raw.endsWith(':')) {
|
if (
|
||||||
|
activeFacet?.type === 'emoji' &&
|
||||||
|
!!activeFacet.value.length &&
|
||||||
|
activeFacet.raw.endsWith(':')
|
||||||
|
) {
|
||||||
if (items?.[0]) {
|
if (items?.[0]) {
|
||||||
activeFacet.replace(items[0].value, {noTrailingSpace: true})
|
activeFacet.replace(items[0].value, {noTrailingSpace: true})
|
||||||
onDismiss()
|
onDismiss()
|
||||||
|
|||||||
Reference in New Issue
Block a user