feat: implement search URL building and enhance search functionality in Fields and RedirectLink components

This commit is contained in:
hamed
2026-07-20 12:28:52 +03:30
parent 984511653b
commit ac3a84d55d
4 changed files with 36 additions and 18 deletions
@@ -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,