Skip to content

Commit

Permalink
Merge pull request #4468 from coralproject/bug/CORL-3009-site-search-…
Browse files Browse the repository at this point in the history
…fixes

[CORL-3009]: Site search fixes to add margin and handle enter
  • Loading branch information
nick-funk authored Dec 19, 2023
2 parents 436b9f1 + 6954f27 commit 0128ade
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@
height: 100%;
width: auto;
overflow: hidden;
margin-left: var(--spacing-1);
margin-right: var(--spacing-1);
}

.filterInput > textarea {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,12 @@ const PaginatedSelect: FunctionComponent<Props> = ({
>
<TextArea
className={styles.filterInput}
onKeyDown={(e) => {
// We don't want blank lines to be added in input
if (e.key === "Enter") {
e.preventDefault();
}
}}
onChange={(e) => onFilter(e.target.value)}
ref={filterRef}
aria-label="Filter results"
Expand Down

0 comments on commit 0128ade

Please sign in to comment.