diff --git a/js/client-mainmenu.js b/js/client-mainmenu.js index 8d3db29c6d..fa95111cc7 100644 --- a/js/client-mainmenu.js +++ b/js/client-mainmenu.js @@ -1281,7 +1281,7 @@ if (!bufs[curBuf]) { bufs[curBuf] = ''; } - var open = (this.open[curSection] || this.search && this.search.length >= 3) ? ' open' : ''; + var open = (this.open[curSection] || toID(this.search)) ? ' open' : ''; bufs[curBuf] += '

'; bufs[curBuf] += '

'; bufs[curBuf] += BattleLog.escapeHTML(curSection) + '';