We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9d887c3 commit c84b2e8Copy full SHA for c84b2e8
client/src/features/groupsV2/search/GroupSearchBar.tsx
@@ -94,11 +94,7 @@ export default function GroupSearchBar() {
94
type="text"
95
placeholder="Search..."
96
{...field}
97
- onBlur={(e) => {
98
- // Avoid triggering this on Enter key press by checking the target of the event
99
- if (!(e.relatedTarget?.getAttribute("type") === "submit"))
100
- handleSubmit((data) => onSubmit(data));
101
- }}
+ onBlur={(e) => e.currentTarget.form?.requestSubmit()}
102
></input>
103
)}
104
/>
0 commit comments