File tree Expand file tree Collapse file tree 2 files changed +4
-9
lines changed
pluggableWidgets/combobox-web/src/components
shared/widget-plugin-component-kit/src Expand file tree Collapse file tree 2 files changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ export const ComboboxWrapper = forwardRef(
5757 </ div >
5858 ) }
5959 </ div >
60- { validation && < ValidationAlert referenceId = { errorId } > { validation } </ ValidationAlert > }
60+ { validation && < ValidationAlert id = { errorId } > { validation } </ ValidationAlert > }
6161 </ Fragment >
6262 ) ;
6363 }
Original file line number Diff line number Diff line change @@ -12,17 +12,12 @@ export interface AlertProps {
1212export interface ValidationAlertProps {
1313 children ?: ReactNode ;
1414 className ?: string ;
15- referenceId ?: string ;
15+ id ?: string ;
1616}
1717
1818// cloning from https://gitlab.rnd.mendix.com/appdev/appdev/-/blob/master/client/src/widgets/web/helpers/Alert.tsx
19- export const ValidationAlert = ( { className, children, referenceId } : ValidationAlertProps ) : ReactElement => (
20- < Alert
21- className = { classNames ( "mx-validation-message" , className ) }
22- bootstrapStyle = "danger"
23- role = "alert"
24- id = { referenceId }
25- >
19+ export const ValidationAlert = ( { className, children, id } : ValidationAlertProps ) : ReactElement => (
20+ < Alert className = { classNames ( "mx-validation-message" , className ) } bootstrapStyle = "danger" role = "alert" id = { id } >
2621 { children }
2722 </ Alert >
2823) ;
You can’t perform that action at this time.
0 commit comments