handle change data selector

This commit is contained in:
Ehsan
2024-10-11 20:27:10 +03:30
parent 6d2a80d65d
commit 81e68e7b62
2 changed files with 11 additions and 15 deletions
+3 -1
View File
@@ -8,7 +8,9 @@ function AutoCompleteSelect({ list, isError, updateData, name, label }) {
disablePortal
options={list}
className="!w-full !rounded-lg"
onChange={(event) => updateData && updateData(event.target.value, "value", name)}
onChange={(event) =>
updateData && updateData(event.target.innerText, "value", name)
}
sx={{
...styleTextSelectRight,
// Hide Icon Number