We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 19dcaf6 commit 94d9c75Copy full SHA for 94d9c75
src/components/fields/Select/Select.tsx
@@ -136,13 +136,11 @@ type VariantType =
136
| 'special.clear'
137
| 'special.link';
138
139
-function WithValidationState(
140
- styles: Styles & { border?: Record<string, string> },
141
-) {
+function WithValidationState(styles: Styles) {
142
return {
143
...styles,
144
border: {
145
- ...('border' in styles ? styles.border : {}),
+ ...(typeof styles.border === 'object' ? styles.border : {}),
146
invalid: '#danger-text',
147
valid: '#success-text',
148
},
0 commit comments