mirror of https://github.com/fantasticit/think.git
tiptap: fix emoji-picker trigger
This commit is contained in:
parent
4fac550c5c
commit
ae9961ec45
|
@ -92,7 +92,7 @@ export const EmojiPicker: React.FC<IProps> = ({ onSelectEmoji, children }) => {
|
||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
<span>{children}</span>
|
{children}
|
||||||
</Popover>
|
</Popover>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
|
@ -14,9 +14,11 @@ export const Emoji: React.FC<{ editor: Editor }> = ({ editor }) => {
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<EmojiPicker onSelectEmoji={setEmoji}>
|
<EmojiPicker onSelectEmoji={setEmoji}>
|
||||||
<Tooltip content="插入表情">
|
<span>
|
||||||
<Button theme={'borderless'} type="tertiary" icon={<IconEmoji />} />
|
<Tooltip content="插入表情">
|
||||||
</Tooltip>
|
<Button theme={'borderless'} type="tertiary" icon={<IconEmoji />} />
|
||||||
|
</Tooltip>
|
||||||
|
</span>
|
||||||
</EmojiPicker>
|
</EmojiPicker>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue