Sharinglabs / cordova-plugin-datepicker

MIT License
8 stars 7 forks source link

"clearButton" issue in ios 8.1 #7

Closed bau720123 closed 9 years ago

bau720123 commented 9 years ago

when in Android 4.4.2 I set "clearButton" to false,it will hidden the "clearButton" I set "clearButton" to true,it will show the "clearButton",and when I click it,it will trigger the "date"' => clear

when in ios 8.1 (iPhone 6+) no mater I set "clearButton" to true or false,it will still show the "clearButton" and when I click it,it will trigger the "date"' => nothing (no any feedback or wrong message)

xelakz commented 9 years ago

For the hide and show of the clearButton I'm fixing this now.

Regarding with the return output: If you click the clear button it will return a string "clear" the same as when you click the cancel button it will return a string 'cancel' so that you will know which of the buttons you actually clicked, and if you click the done button you will get a return of a date

xelakz commented 9 years ago

I just pushed my commit, the clear button can be hidden now. Maybe you could also check @bau720123

bau720123 commented 9 years ago

thanks for @xelakz I will wait the new release plugin version in PGB because of I am only use PGB (build.phonegap.com)

bau720123 commented 9 years ago

thanks @xelakz problem solved in 1.1.3