Skip to content
This repository was archived by the owner on Jul 28, 2025. It is now read-only.

Commit 3e490c2

Browse files
committed
onfocus fixed
1 parent dbb47d1 commit 3e490c2

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
lines changed

src/components/portals/SelectPortal.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ const SelectPortal = (popperProps: CellComponentProps) => {
5252
newValue: OnChangeValue<any, false>,
5353
actionMeta: ActionMeta<RowSelectOption>
5454
) => {
55-
console.log(newValue, actionMeta);
5655
const selection = newValue ? newValue.value : "";
5756
// Update on disk & memory
5857
dataActions.updateCell(

src/components/styles/TagsStyles.ts

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { StyleVariables } from "helpers/Constants";
12
import {
23
StylesConfig,
34
GroupBase,
@@ -8,12 +9,18 @@ const CustomTagsStyles: StylesConfig<any, true, GroupBase<any>> = {
89
position: "static",
910
boxSizing: "border-box",
1011
}),
11-
menuPortal: base => ({ ...base, zIndex: 9999 }),
12-
control: (styles) => ({ ...styles, backgroundColor: "var(--background-primary)" }),
13-
option: (styles, { data }) => ({
12+
menuPortal: (styles) => ({ ...styles, zIndex: 9999 }),
13+
control: (styles) => ({ ...styles, backgroundColor: StyleVariables.BACKGROUND_PRIMARY }),
14+
option: (styles, { data, isFocused }) => ({
1415
...styles,
15-
backgroundColor: data.color + " !important",
16-
color: "rgb(66, 66, 66) !important"
16+
backgroundColor: isFocused ? StyleVariables.TEXT_ACCENT_HOVER : data.color,
17+
color: "rgb(66, 66, 66)",
18+
padding: 0,
19+
textAlign: "center",
20+
":hover": {
21+
backgroundColor: StyleVariables.BACKGROUND_PRIMARY,
22+
},
23+
1724
}),
1825
multiValue: (styles, { data }) => {
1926
return {

0 commit comments

Comments
 (0)