change component file & set data in url & handle remove all variable

This commit is contained in:
Ehsan
2025-05-16 17:19:38 +03:30
parent a016d3319a
commit 7fddf65026
5 changed files with 62 additions and 42 deletions
+3 -2
View File
@@ -10,7 +10,8 @@ function AutoCompleteSelect({
name,
label,
disabled = false,
listboxProps
listboxProps,
sendAll
}) {
return (
<Autocomplete
@@ -21,7 +22,7 @@ function AutoCompleteSelect({
value={value || null}
className="!w-full !rounded-lg auto-complete-selector"
onChange={(e, newValue) => {
updateData && updateData(newValue || "", name);
updateData && updateData((newValue && sendAll) ? newValue : (newValue && !sendAll) && newValue.label || "", name);
}}
sx={{
...styleTextSelectRight,