Skip to content

Commit 94d9c75

Browse files
committed
fix: focus state * 4
1 parent 19dcaf6 commit 94d9c75

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/components/fields/Select/Select.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -136,13 +136,11 @@ type VariantType =
136136
| 'special.clear'
137137
| 'special.link';
138138

139-
function WithValidationState(
140-
styles: Styles & { border?: Record<string, string> },
141-
) {
139+
function WithValidationState(styles: Styles) {
142140
return {
143141
...styles,
144142
border: {
145-
...('border' in styles ? styles.border : {}),
143+
...(typeof styles.border === 'object' ? styles.border : {}),
146144
invalid: '#danger-text',
147145
valid: '#success-text',
148146
},

0 commit comments

Comments
 (0)