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
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.
Ionic version: (check one with "x")
[ ] 1.x
[ ] 2.x
[x] 3.x
I'm submitting a ... (check one with "x")
[x] bug report
[ ] feature request
[ ] support request => Please do not submit support requests here, use one of these channels: https://forum.ionicframework.com/ or http://ionicworldwide.herokuapp.com/
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.
http://plnkr.co/edit/mOrDBPcWxXB0L2sFjHFJ?p=preview
Other information:
While stepping through the code for the
<ion-datetime>
component, I found that thehandler
property was present until this line is called in `datetime.ts:const pickerOptions = deepCopy(this.pickerOptions);
It appears that the
deepCopy()
function is stripping off thehandler
property.Ionic info: (run
ionic info
from a terminal/cmd prompt and paste output below):The text was updated successfully, but these errors were encountered: