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(
57
57
</ div >
58
58
) }
59
59
</ div >
60
- { validation && < ValidationAlert referenceId = { errorId } > { validation } </ ValidationAlert > }
60
+ { validation && < ValidationAlert id = { errorId } > { validation } </ ValidationAlert > }
61
61
</ Fragment >
62
62
) ;
63
63
}
Original file line number Diff line number Diff line change @@ -12,17 +12,12 @@ export interface AlertProps {
12
12
export interface ValidationAlertProps {
13
13
children ?: ReactNode ;
14
14
className ?: string ;
15
- referenceId ?: string ;
15
+ id ?: string ;
16
16
}
17
17
18
18
// 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 } >
26
21
{ children }
27
22
</ Alert >
28
23
) ;
You can’t perform that action at this time.
0 commit comments