diff options
author | crupest <crupest@outlook.com> | 2020-11-11 23:48:57 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2020-11-11 23:48:57 +0800 |
commit | 0c789f235f38aa238048b31b9715810d397d3420 (patch) | |
tree | 04b1d02d5f22f83afb8f1819a16ed300ea23470a /FrontEnd/src/app/views/common/SearchInput.tsx | |
parent | 6281ccaee525300c5aa303404584b8ce489ebeb2 (diff) | |
download | timeline-0c789f235f38aa238048b31b9715810d397d3420.tar.gz timeline-0c789f235f38aa238048b31b9715810d397d3420.tar.bz2 timeline-0c789f235f38aa238048b31b9715810d397d3420.zip |
fix: Bug in search input and layout in timeline member.
Diffstat (limited to 'FrontEnd/src/app/views/common/SearchInput.tsx')
-rw-r--r-- | FrontEnd/src/app/views/common/SearchInput.tsx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/FrontEnd/src/app/views/common/SearchInput.tsx b/FrontEnd/src/app/views/common/SearchInput.tsx index 1373bd68..eb127fcf 100644 --- a/FrontEnd/src/app/views/common/SearchInput.tsx +++ b/FrontEnd/src/app/views/common/SearchInput.tsx @@ -30,6 +30,7 @@ const SearchInput: React.FC<SearchInputProps> = (props) => { (event: React.KeyboardEvent<HTMLInputElement>): void => { if (event.key === "Enter") { onButtonClick(); + event.preventDefault(); } }, [onButtonClick] |