Skip to content

Commit

Permalink
fix: discover form button disable state error (RSSNext#2113)
Browse files Browse the repository at this point in the history
  • Loading branch information
xiangzy1 authored Dec 12, 2024
1 parent 0eed6d1 commit 0ae6ec9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/renderer/src/modules/discover/form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ export function DiscoverForm({ type = "search" }: { type?: string }) {
(event: ChangeEvent<HTMLInputElement>) => {
const trimmedKeyword = event.target.value.trimStart()
if (!prefix) {
form.setValue("keyword", trimmedKeyword)
form.setValue("keyword", trimmedKeyword, { shouldValidate: true })
return
}
const isValidPrefix = prefix.find((p) => trimmedKeyword.startsWith(p))
Expand Down

0 comments on commit 0ae6ec9

Please sign in to comment.