views/mdc/assets/js/components/initialize.js in voom-presenters-0.1.5 vs views/mdc/assets/js/components/initialize.js in voom-presenters-0.1.6
- old
+ new
@@ -1,7 +1,8 @@
import {initButtons} from './button';
import {initDialogs} from './dialogs';
+import {initDateTime} from './datetime';
import {initTextFields} from './text-fields';
import {initEvents} from './events';
import {initLists} from './lists';
import {initIconToggles} from './icon-toggles';
import {initMenus} from './menus';
@@ -9,27 +10,26 @@
import {initChips} from './chips';
import {initCards} from './cards';
import {initForms} from './forms';
import {initSnackbar} from './snackbar';
import {initCheckboxes} from './checkboxes';
-import {initDateTime} from './date-time';
import {initSwitches} from './switches';
export function initialize(){
console.log('Initializing');
initButtons();
initDialogs();
+ initDateTime();// MUST BE BEFORE initTextFields
initTextFields();
initLists();
initIconToggles();
initMenus();
initSelects();
initChips();
initCards();
initForms();
initSnackbar();
initCheckboxes();
- initDateTime();
initSwitches();
// This needs to be last, because it relies on the components installed above.
initEvents();
// componentHandler.upgradeAllRegistered();
}