Framework for entering time tickets BOD-183 BOD-185
This commit is contained in:
@@ -4,7 +4,14 @@ const { Option } = Select;
|
||||
|
||||
//To be used as a form element only.
|
||||
|
||||
const JobSearchSelect = ({ value, onChange, options, onBlur, disabled }) => {
|
||||
const JobSearchSelect = ({
|
||||
value,
|
||||
onChange,
|
||||
options,
|
||||
onBlur,
|
||||
disabled,
|
||||
loading,
|
||||
}) => {
|
||||
const [option, setOption] = useState(value);
|
||||
|
||||
useEffect(() => {
|
||||
@@ -22,6 +29,7 @@ const JobSearchSelect = ({ value, onChange, options, onBlur, disabled }) => {
|
||||
style={{
|
||||
width: 300,
|
||||
}}
|
||||
loading={loading}
|
||||
onChange={setOption}
|
||||
optionFilterProp="children"
|
||||
onBlur={onBlur}
|
||||
|
||||
Reference in New Issue
Block a user