Skip to content

Commit bed7719

Browse files
author
Joey Marshment-Howell
committed
fix: prevent submitting sync catalog form from search input (#13881)
1 parent e47a59b commit bed7719

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

airbyte-webapp/src/components/connection/ConnectionForm/SyncCatalogTable/SyncCatalogTable.tsx

+4
Original file line numberDiff line numberDiff line change
@@ -461,6 +461,10 @@ export const SyncCatalogTable: FC<SyncCatalogTableProps> = ({ scrollParentContai
461461
})}
462462
containerClassName={styles.searchInputContainer}
463463
onChange={(e) => setFiltering(e.target.value)}
464+
onKeyDown={(e: React.KeyboardEvent<HTMLInputElement>) => {
465+
// We do not want to submit the connection form when pressing Enter in the search field
466+
e.key === "Enter" && e.preventDefault();
467+
}}
464468
/>
465469
<FlexContainer>
466470
<FlexContainer justifyContent="flex-end" alignItems="center" direction="row" gap="lg">

0 commit comments

Comments
 (0)