Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4ae9f71

Browse files
two or more select columns in table, all editable select columns shows last select column options
1 parent a6e34bd commit 4ae9f71

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

‎client/packages/lowcoder/src/comps/comps/tableComp/column/columnTypeComps/columnSelectComp.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,14 @@ type SelectEditProps = {
2323
options: any[];
2424
};
2525

26-
const SelectEdit = (props: SelectEditProps) => {
26+
const SelectEdit = (
27+
props: SelectEditProps,
28+
) => {
2729
const [currentValue, setCurrentValue] = useState(props.initialValue);
28-
2930
return (
3031
<SelectUIView
3132
value={currentValue}
32-
options={options}
33+
options={props.options}
3334
onChange={(val) => {
3435
props.onChange(val);
3536
setCurrentValue(val)

0 commit comments

Comments
 (0)