bulma-extensions
Advanced tools
Comparing version 4.0.2 to 4.1.0
const defaultOptions = { | ||
color: 'primary', | ||
isRange: false, | ||
allowSameDayRange: true, | ||
lang: 'en', // internationalization | ||
@@ -5,0 +6,0 @@ startDate: undefined, |
@@ -656,8 +656,15 @@ import * as utils from '../utils'; | ||
this.start = date; | ||
if (withEvents) | ||
if (withEvents) { | ||
this.emit('select', this); | ||
} | ||
} else if (dateFns.isAfter(date, this.start)) { | ||
this.end = date; | ||
if (withEvents) | ||
if (withEvents) { | ||
this.emit('select', this); | ||
} | ||
} else if (this.options.allowSameDayRange) { | ||
this.end = date; | ||
if (withEvents) { | ||
this.emit('select', this); | ||
} | ||
} else { | ||
@@ -664,0 +671,0 @@ this.start = date; |
@@ -7,2 +7,3 @@ const defaultOptions = { | ||
isRange: false, | ||
allowSameDayRange: true, | ||
disabledDates: [], | ||
@@ -9,0 +10,0 @@ disabledWeekDays: undefined, |
@@ -517,2 +517,5 @@ import * as utils from './utils/index'; | ||
if (!this.options.showHeader) { | ||
this._ui.header.container.classList.add('is-hidden'); | ||
} | ||
if (!this.options.showFooter) { | ||
@@ -519,0 +522,0 @@ this._ui.footer.container.classList.add('is-hidden'); |
@@ -6,3 +6,3 @@ { | ||
"style": "./dist/css/bulma-extensions.min.css", | ||
"version": "4.0.2", | ||
"version": "4.1.0", | ||
"scripts": { | ||
@@ -9,0 +9,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
3106548
55324