ion-datetime-picker
ion-datetime-picker copied to clipboard
onlyValid 'between' doesn't work correctly with month list on IOS
If I set a range with onlyValid. I can change month outside the cut-off range by selecting month from select list , the dropdown will display incorrect month but the model will actually be correct.
Example... if cut-off day is 6 Feb , and I use dropdown to select March then select list will show March but the model and actual days calendar will still show days for Feb
.
This bug doesn't show up on browsers but shows up on IOS simulator or ipad device.
Also having this problem
Thanks for reporting, I'll try to look into it.
Same bugs happened to me. After search a while, i found the root cause for mine is iOS date parsing different from Android. So make sure u are passing correct date object for 'between' or others.
@l1nknyto Is there any specific format that dates if we pass, will disable blocked values in month field both on android and ios consistently.?
@srimitetib23 yyyy/MM/dd hh:mm if you dont use time, just use: yyyy/MM/dd
hope that helps.