Skip to content

Commit 6586970

Browse files
committed
fix: select invalid message
1 parent 5d9d604 commit 6586970

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/npm-fastui-bootstrap/src/index.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,15 +84,14 @@ export const classNameGenerator: ClassNameGenerator = ({
8484
switch (subElement) {
8585
case 'textarea':
8686
case 'input':
87+
case 'select-react':
8788
return {
88-
'form-control': type !== 'FormFieldBoolean',
89+
'form-control': !['FormFieldBoolean', 'FormFieldSelect'].includes(type),
8990
'is-invalid': props.error != null,
9091
'form-check-input': type === 'FormFieldBoolean',
9192
}
9293
case 'select':
9394
return 'form-select'
94-
case 'select-react':
95-
return ''
9695
case 'label':
9796
if (props.displayMode === 'inline') {
9897
return 'visually-hidden'

0 commit comments

Comments
 (0)