travix-ui-kit
Advanced tools
Comparing version 0.13.0 to 0.13.1
@@ -140,4 +140,5 @@ import PropTypes from 'prop-types'; | ||
this.setState(({ renderDate }) => { | ||
renderDate.setMonth(renderDate.getMonth() + (direction === CALENDAR_MOVE_TO_PREVIOUS ? -1 : 1)); | ||
return { renderDate }; | ||
const newDate = new Date(renderDate); | ||
newDate.setMonth(renderDate.getMonth() + (direction === CALENDAR_MOVE_TO_PREVIOUS ? -1 : 1)); | ||
return { renderDate: newDate }; | ||
}, () => { | ||
@@ -144,0 +145,0 @@ if ((direction === CALENDAR_MOVE_TO_PREVIOUS) && onNavPreviousMonth) { |
@@ -193,4 +193,5 @@ 'use strict'; | ||
renderDate.setMonth(renderDate.getMonth() + (direction === CALENDAR_MOVE_TO_PREVIOUS ? -1 : 1)); | ||
return { renderDate: renderDate }; | ||
var newDate = new Date(renderDate); | ||
newDate.setMonth(renderDate.getMonth() + (direction === CALENDAR_MOVE_TO_PREVIOUS ? -1 : 1)); | ||
return { renderDate: newDate }; | ||
}, function () { | ||
@@ -197,0 +198,0 @@ if (direction === CALENDAR_MOVE_TO_PREVIOUS && onNavPreviousMonth) { |
{ | ||
"name": "travix-ui-kit", | ||
"version": "0.13.0", | ||
"version": "0.13.1", | ||
"description": "Travix UI kit", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
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
1928000
43316