CEC-252, CEC-253 Remove modal status popup, new car selection control (#45)
* Create multiselect car table control Remove table overflow containers * Include trim to add car form * CEC-252 Replace modal status with link to car details page * Remove send command from car status page Fix menu key warning
This commit is contained in:
@@ -20,9 +20,13 @@ const SearchField = (props) => {
|
||||
onSearch(searchTerm);
|
||||
};
|
||||
const handleEnterPress = (e) => {
|
||||
if (e.keyCode !== 13) return;
|
||||
e.preventDefault();
|
||||
handleSearch(e);
|
||||
if (e.keyCode === 13) {
|
||||
e.preventDefault();
|
||||
handleSearch(e);
|
||||
} else if (e.keyCode === 27) {
|
||||
e.preventDefault();
|
||||
setSearchTerm("");
|
||||
}
|
||||
};
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user