♻️(react) make className standard across components
The className prop was sometimes set onto the nested element and sometimes on the container element, which was not consistent. Now we always set the className onto the upmost element.
This commit is contained in:
@@ -57,6 +57,7 @@ export type DatePickerAuxProps = PropsWithChildren &
|
||||
const DatePickerAux = forwardRef(
|
||||
(
|
||||
{
|
||||
className,
|
||||
pickerState,
|
||||
pickerProps,
|
||||
onClear,
|
||||
@@ -86,7 +87,7 @@ const DatePickerAux = forwardRef(
|
||||
<I18nProvider locale={locale || currentLocale}>
|
||||
<Field
|
||||
{...props}
|
||||
className={classNames({
|
||||
className={classNames(className, {
|
||||
"c__date-picker__range__container": isRange,
|
||||
})}
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user