logisticinfotech / ionic4-datepicker

Ionic 4 Datepicker component
https://www.logisticinfotech.com/blog/ionic4-datepicker-component/
Other
77 stars 33 forks source link

When Press Cancel or close modal then how to check whether it has date or not selected? #52

Open ipehimanshu opened 4 years ago

ipehimanshu commented 4 years ago

Hello

When Press Cancel or close modal then how to check whether it has date or not selected?

we are using button to open datepicker and when close we take value but when cancel modal then it shows invalid date.

So have you any other way to give empty value or anything ?

Thanks

Leo1305Pineda commented 3 years ago

I resolved the issue for my case, it also gives me an invalid date and it was because of the format it was not correct if you define a format make sure you pass it correctly. https://github.com/logisticinfotech/ionic4-datepicker/pull/60

testing

git clone https://github.com/Leo1305Pineda/ionic4-datepicker.git cd ionic4-datepicker npm i npm run build_lib cp -R /dist/ionic4-datepicker /you_project/node_modules/@logisticinfotech/ionic4-datepicker cd /you_project npm run start `