bulma-extensions
Advanced tools
Comparing version 6.2.6 to 6.2.7
ready(function () { | ||
bulmaCalendar.attach('.bulmaCalendar'); | ||
bulmaCalendar.attach('#datepickerDemoRange'); | ||
@@ -3,0 +5,0 @@ bulmaCalendar.attach('#datepickerDemoInline'); |
const defaultOptions = { | ||
type: 'datetime', | ||
type: undefined, | ||
color: 'primary', | ||
@@ -4,0 +4,0 @@ isRange: false, |
@@ -44,12 +44,14 @@ import * as utils from './utils/index'; | ||
switch (this.element.getAttribute('type')) { | ||
case 'date': | ||
this.options.type = 'date'; | ||
break; | ||
case 'time': | ||
this.options.type = 'time'; | ||
break; | ||
default: | ||
this.options.type = 'datetime'; | ||
break; | ||
if (this.options.type === undefined) { | ||
switch (this.element.getAttribute('type')) { | ||
case 'date': | ||
this.options.type = 'date'; | ||
break; | ||
case 'time': | ||
this.options.type = 'time'; | ||
break; | ||
default: | ||
this.options.type = 'datetime'; | ||
break; | ||
} | ||
} | ||
@@ -555,3 +557,3 @@ this._id = utils.uuid('datetimePicker'); | ||
// Set component type (date / time / datetime) | ||
this.options.type = (['date', 'time', 'datetime'].indexOf(this.element.getAttribute('type').toLowerCase()) > -1) ? this.element.getAttribute('type').toLowerCase() : this.options.type; | ||
// this.options.type = (['date', 'time', 'datetime'].indexOf(this.element.getAttribute('type').toLowerCase()) > -1) ? this.element.getAttribute('type').toLowerCase() : this.options.type; | ||
this._type = (['date', 'time', 'datetime'].indexOf(this.options.type.toLowerCase()) > -1) ? this.options.type.toLowerCase() : 'date'; | ||
@@ -558,0 +560,0 @@ // Change element type to prevent browser default type="date" behavior |
@@ -7,3 +7,3 @@ { | ||
"sass": "src/sass/index.sass", | ||
"version": "6.2.6", | ||
"version": "6.2.7", | ||
"scripts": { | ||
@@ -10,0 +10,0 @@ "build": "gulp", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
62173
5425458