Skip to content

fix(datetime): use spread operator to copy pickerOptions - #13202

Merged
manucorporat merged 2 commits into
masterfrom
datetime-options-fix
Oct 27, 2017
Merged

manucorporat merged 2 commits into
masterfrom
datetime-options-fix

Conversation

@brandyscarney

Copy link
Copy Markdown
Member

Short description of what this resolves:

Passing buttons in pickerOptions to the DateTime component will drop the handler functions because of the deepCopy.

Changes proposed in this pull request:

  • Uses the spread operator instead of the deepCopy function.
  • Adds pickerOptions to one of the examples in the e2e test

Ionic Version: 3.x

Fixes: #11641

@mhartington mhartington added this to the 3.9.0 milestone Oct 26, 2017
@kensodemann
kensodemann self-requested a review October 27, 2017 15:08
@manucorporat
manucorporat merged commit 2ab8385 into master Oct 27, 2017
@brandyscarney
brandyscarney deleted the datetime-options-fix branch October 30, 2017 14:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants