change component file & set data in url & handle remove all variable
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user