Hi! :) if :is-24="false" time-picker input returns wrong values, for example -{ hours: 16, minutes: 0 } if I pick 4 PM on the grid.
It causes bugs with max\min-time props, because if you need to disable all time options under 4 PM on the times-grid, you need to pass to min-time prop such value - { hours: 4, minutes: 0 }, which will affect AM grid too. And if you pass to the prop - { hours: 16, minutes: 0 } it will disable all available options.
Also if you pass to max-time prop something like { hours: 4, minutes: 0 } and then try to pick avalilable PM time, you will get nothing in result, probably because time-picker returns value with hours in 24-format, which means any hour on PM grid is lesser than { hours: 4, minutes: 0 }
Expected result:
1. time options < 4 AM - disabled.
2. time options for PM - all available.
Actual result:
Everything < 4 is disabled, regardless which time option has chosen AM or PM.
Hi! :) if :is-24="false" time-picker input returns wrong values, for example -
{ hours: 16, minutes: 0 }
if I pick 4 PM on the grid. It causes bugs with max\min-time props, because if you need to disable all time options under 4 PM on the times-grid, you need to pass to min-time prop such value -{ hours: 4, minutes: 0 }
, which will affect AM grid too. And if you pass to the prop -{ hours: 16, minutes: 0 }
it will disable all available options.Also if you pass to max-time prop something like
{ hours: 4, minutes: 0 }
and then try to pick avalilable PM time, you will get nothing in result, probably because time-picker returns value with hours in 24-format, which means any hour on PM grid is lesser than{ hours: 4, minutes: 0 }
To Reproduce