Skip to content

Commit 6e1ba90

Browse files
fix for color picker to show selected color
1 parent 8ee1306 commit 6e1ba90

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

client/packages/lowcoder-design/src/components/colorSelect/index.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ export const ColorSelect = (props: ColorSelectProps) => {
3131
}, 200),
3232
[dispatch]
3333
);
34-
3534
return (
3635
<Popover
3736
trigger={trigger}
@@ -170,7 +169,7 @@ const BackDiv = styled.div.attrs<{ $color: string }>((props: { $color: string })
170169
`;
171170
// main block
172171
const ColorBlock = styled.div<{ $color: string }>`
173-
background-color: ${(props) => (isValidColor(props.$color) ? props.color : "#FFFFFF")};
172+
background-color: ${(props) => (isValidColor(props.$color) ? props.$color : "#FFFFFF")};
174173
border: 1px solid rgba(0, 0, 0, 0.1);
175174
border-radius: 4px;
176175
height: 24px;

client/packages/lowcoder/src/comps/queries/resourceDropdown.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ const SelectOptionContains = styled.div`
3939
align-items: center;
4040
width: 99%;
4141
`;
42-
const SelectOption = styled((props: OptionProps) => <Option {...props} />)`
42+
const SelectOption = styled(Option)`
4343
display: flex;
4444
justify-content: space-between;
4545

0 commit comments

Comments
 (0)