Skip to content

Commit fc2f9c9

Browse files
committed
FIX select input optionFrom behaviour
1 parent 9c4f645 commit fc2f9c9

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/inputs/SelectInput.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,8 @@ export const SelectInput = <T extends { [x: string]: any },>(props: {
9696
}, [props.value, values, props.defaultValue, loading])
9797

9898
useEffect(() => {
99-
if (props.optionsFrom && (typeof props.optionsFrom === 'function' || !values.length)) {
99+
console.debug('get possoible values')
100+
if (props.optionsFrom) {
100101
const cond = option(props.fetchCondition)
101102
.map(cond => cond())
102103
.getOrElse(true);

0 commit comments

Comments
 (0)