Skip to content

Commit

Permalink
reenable the filter button when invalid name is cleared
Browse files Browse the repository at this point in the history
fix #1666
  • Loading branch information
vadosnaprimer committed Jan 4, 2024
1 parent 19077cb commit 033a923
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion TASVideos/wwwroot/js/user-search.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

function maybeEnableSubmit() {
if (submitBtnElem) {
submitBtnElem.disabled = !validNames.has(getCurrentValue().toUpperCase());
submitBtnElem.disabled = !validNames.has(getCurrentValue().toUpperCase()) && getCurrentValue().length > 0;
}
}
function updateDataList(names) {
Expand Down

0 comments on commit 033a923

Please sign in to comment.