You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
<ion-datetime> strips handlers from custom buttons specified in pickerOptions #11641
Current behavior:
If you specify custom buttons for an <ion-datetime> component, those buttons will be rendered, but clicking them will not do anything.
Expected behavior:
Clicking the custom buttons should execute their handler functions.
Steps to reproduce:
See the Plunkr below (running Ionic 3.2.1). The custom date picker button and the button on the page itself are hooked up to the same event handler, but only one produces an effect.
Other information:
While stepping through the code for the <ion-datetime> component, I found that the handler property was present until this line is called in `datetime.ts:
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.
Activity
jgw96 commentedon May 15, 2017
Thanks for opening an issue with us, we will look into this.
fix(datetime): use spread operator to copy pickerOptions to keep func…
ionitron-bot commentedon Sep 1, 2018
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.