Open MhjnSamir opened 3 years ago
I think the package is automatically setting the default value of today if we pass value='' empty string so , I think we have to add a wrapper class and control it our way rather that using their default value if we want like below example in mantine ui component.
export const NepaliDatePickerInput = ({handleChange , ...otherProps}:any) => {
return (
<InputBase
component={NepaliDatePicker}
options={{ calenderLocale: 'en', valueLocale: 'en' }}
style={{ border: 0 }}
className={classes.nepaliDatePicker}
{...otherProps}
/>
);
};
Is there any documentation about this?