mirror of
https://github.com/mattermost/mattermost.git
synced 2026-09-24 16:05:00 +08:00
Fix Ctrl-up when changing the value on different inputs (#28062)
This commit is contained in:
@@ -371,6 +371,10 @@ const useKeyHandler = (
|
||||
}
|
||||
}, [draft.message]);
|
||||
|
||||
useEffect(() => {
|
||||
messageHistoryIndex.current = messageHistory.length;
|
||||
}, [messageHistory]);
|
||||
|
||||
// Update last channel switch at
|
||||
useEffect(() => {
|
||||
lastChannelSwitchAt.current = Date.now();
|
||||
|
||||
Reference in New Issue
Block a user