mirror of
https://github.com/zulip/zulip.git
synced 2025-11-06 06:53:25 +00:00
The existing code shortens the searchbox each time it receives focus. Unfortunately, this means that if it receives focus twice in a row, it shrinks twice in a row. (For some reason, the '/' hotkey does this). So, instead, make it idempotent -- if we're already shrunk, don't shrink us again. (imported from commit 8179963bbd00822d15d92609d89f572d2de7800c)