Skip to content

Commit

Permalink
fix: select invalid message
Browse files Browse the repository at this point in the history
  • Loading branch information
elio2t committed Oct 17, 2024
1 parent 5d9d604 commit 6586970
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/npm-fastui-bootstrap/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,15 +84,14 @@ export const classNameGenerator: ClassNameGenerator = ({
switch (subElement) {
case 'textarea':
case 'input':
case 'select-react':
return {
'form-control': type !== 'FormFieldBoolean',
'form-control': !['FormFieldBoolean', 'FormFieldSelect'].includes(type),
'is-invalid': props.error != null,
'form-check-input': type === 'FormFieldBoolean',
}
case 'select':
return 'form-select'
case 'select-react':
return ''
case 'label':
if (props.displayMode === 'inline') {
return 'visually-hidden'
Expand Down

0 comments on commit 6586970

Please sign in to comment.