Skip to content

Commit

Permalink
Fix debounce pending infinitely when cleared
Browse files Browse the repository at this point in the history
  • Loading branch information
kurukimi committed Aug 16, 2024
1 parent af2de53 commit a5fea58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/src/jira/components/JiraIssueComboBox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ const JiraIssueComboBox = <T extends FieldValues>({
ref: rootRef,
},
onInputChange: (_, value, reason) => {
if (reason === "reset" && value) {
if ((reason === "reset" && value) || value === searchFilter) {
return;
}
setDebouncePending(true);
Expand Down

0 comments on commit a5fea58

Please sign in to comment.