Hello, I want to have option to enable and disable daterange picker using checkbox, see my image below

but the problem is i need to check and uncheck twice to make the datepicker popup works... This is a bug i think, because it needs twice of check and uncheck again to make it work
I want it when user check the check box like image above, date picker is enabled and user can click calendar icon without having to check and uncheck it twice... thank you