{master} ignore # in tournament search box

pull/10033/head
Thibault Duplessis 2021-10-23 11:17:50 +02:00
parent 0b44430f7c
commit d08f3035ae
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ export function input(ctrl: TournamentController): VNode {
});
$(el).on('keydown', e => {
if (e.code === 'Enter') {
const rank = parseInt(e.target.value);
const rank = parseInt(e.target.value.replace('#', '').trim());
if (rank > 0) ctrl.jumpToRank(rank);
}
if (e.code === 'Escape') {