We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 571c500 commit 420a684Copy full SHA for 420a684
src/Common/RJSF/widgets/Select.tsx
@@ -15,7 +15,6 @@
15
*/
16
17
import React from 'react'
18
-import isEqual from 'lodash/isEqual'
19
import { WidgetProps } from '@rjsf/utils'
20
import ReactSelect, { MenuListProps, components } from 'react-select'
21
import { PLACEHOLDERS } from '../constants'
@@ -58,8 +57,8 @@ export const Select = (props: WidgetProps) => {
58
57
59
const getOption = (value) =>
60
multiple
61
- ? selectOptions.filter((option) => value.some((val) => isEqual(val, option.value)))
62
- : selectOptions.find((option) => isEqual(value, option.value))
+ ? selectOptions.filter((option) => value.some((val) => val === option.value))
+ : selectOptions.find((option) => value === option.value)
63
64
return (
65
<ReactSelect
0 commit comments