Skip to content
Permalink
Browse files

fix(datetime): recalculate time columns on change (#18380)

  • Loading branch information...
liamdebeasi committed May 24, 2019
1 parent 6ddde3a commit 292b24ad8f8ab5f0e1410586fd9af9566cc0af18
Showing with 0 additions and 6 deletions.
  1. +0 −6 core/src/components/datetime/datetime.tsx
@@ -270,12 +270,6 @@ export class Datetime implements ComponentInterface {
picker.addEventListener('ionPickerColChange', async (event: any) => {
const data = event.detail;

/**
* Don't bother checking for non-dates as things like hours or minutes
* are always going to have the same number of column options
*/
if (data.name !== 'month' && data.name !== 'day' && data.name !== 'year') { return; }

const colSelectedIndex = data.selectedIndex;
const colOptions = data.options;

0 comments on commit 292b24a

Please sign in to comment.
You can’t perform that action at this time.