feat: implement search URL building and enhance search functionality in Fields and RedirectLink components
This commit is contained in:
@@ -9,6 +9,7 @@ function AutoCompleteSearch({
|
||||
handleSearch,
|
||||
setInputValue,
|
||||
setSelectedOption,
|
||||
onEnter,
|
||||
}) {
|
||||
const clearIndicatorProps = clearText
|
||||
? {
|
||||
@@ -57,6 +58,11 @@ function AutoCompleteSearch({
|
||||
variant="standard"
|
||||
placeholder={placeholder}
|
||||
dir="rtl"
|
||||
onKeyDown={(e) => {
|
||||
if (e.key !== "Enter" || e.nativeEvent.isComposing) return;
|
||||
e.preventDefault();
|
||||
onEnter && onEnter(e.target.value ?? "");
|
||||
}}
|
||||
InputProps={{
|
||||
...params.InputProps,
|
||||
disableUnderline: true,
|
||||
|
||||
Reference in New Issue
Block a user