mirror of
https://github.com/danog/telegram-tt.git
synced 2024-11-30 04:39:00 +01:00
Bot Command Tooltip: Fix flickering (again) (#1788)
This commit is contained in:
parent
a6a7f6d84f
commit
998a082b4e
@ -53,12 +53,12 @@ export default function useBotCommandTooltip(
|
||||
}, [getFilteredCommands, html, isAllowed, unmarkIsOpen]);
|
||||
|
||||
useEffect(() => {
|
||||
if (filteredBotCommands && filteredBotCommands.length) {
|
||||
if (filteredBotCommands && filteredBotCommands.length && html.length > 0) {
|
||||
markIsOpen();
|
||||
} else {
|
||||
unmarkIsOpen();
|
||||
}
|
||||
}, [filteredBotCommands, markIsOpen, unmarkIsOpen]);
|
||||
}, [filteredBotCommands, html.length, markIsOpen, unmarkIsOpen]);
|
||||
|
||||
return {
|
||||
isOpen,
|
||||
|
Loading…
Reference in New Issue
Block a user