Skip to content

Commit

Permalink
add margin to pagin select textarea; on enter nothing happens
Browse files Browse the repository at this point in the history
  • Loading branch information
kabeaty committed Dec 19, 2023
1 parent 436b9f1 commit 6954f27
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 6954f27

Please sign in to comment.