date-picker-svelte icon indicating copy to clipboard operation
date-picker-svelte copied to clipboard

`valid` prop overridden

Open PlopTheReal opened this issue 1 year ago • 1 comments

I have a 'start' and 'end' date time picker and I control if the end date is greater than the start date. I want to reflect that visually by passing the 'valid' prop to the 'end' picker but it seems it's getting overridden by the internal date format check. Is it possible to do such change? Or is there is any other preferred ways?

PlopTheReal avatar Sep 08 '22 10:09 PlopTheReal

The valid prop is mainly there to be read tbh. Would it work for you to use the min and max props, or just show the user an error message?

probablykasper avatar Sep 08 '22 16:09 probablykasper