Skip to content

Commit

Permalink
Fix: migrate deprecated MUI APIs
Browse files Browse the repository at this point in the history
  • Loading branch information
aelassas committed Feb 13, 2025
1 parent d3b1f8a commit b5bb62d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
8 changes: 6 additions & 2 deletions backend/src/components/MultipleSelect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -324,10 +324,14 @@ const MultipleSelect = ({
</li>
)
}}
ListboxProps={ListboxProps || undefined}
onFocus={onFocus || undefined}
ListboxComponent={ListBox}
onOpen={onOpen || undefined}
slotProps={{
listbox: {
component: ListBox,
...ListboxProps
}
}}
/>
</div>
)
Expand Down
8 changes: 6 additions & 2 deletions frontend/src/components/MultipleSelect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -374,10 +374,14 @@ const MultipleSelect = ({
</li>
)
}}
ListboxProps={ListboxProps || undefined}
onFocus={onFocus || undefined}
ListboxComponent={ListBox}
onOpen={onOpen || undefined}
slotProps={{
listbox: {
component: ListBox,
...ListboxProps
}
}}
/>
</div>
)
Expand Down

0 comments on commit b5bb62d

Please sign in to comment.