react-calendar
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -447,11 +447,12 @@ (function webpackUniversalModuleDefinition(root, factory) { | ||
var date = props.date; | ||
var mods = props.mods; | ||
var weekNumbers = props.weekNumbers; | ||
var modifiers = (0, _util.getMods)(mods, date, clsPrefix, 'month'); | ||
var edges = (0, _dateUtils.monthEdges)(date); | ||
var mods = props.mods; | ||
var day = props.day; | ||
var week = props.week; | ||
var clsMods = void 0, | ||
events = void 0; | ||
@@ -466,5 +467,9 @@ if (!props.day) { | ||
var clsMods = void 0, | ||
events = void 0; | ||
if (!props.day || !props.week) { | ||
// this means we're probably just rendering a single month and need to filter our component types again. | ||
mods = (0, _util.getModsByCompType)('month', mods); | ||
} | ||
var modifiers = (0, _util.getMods)(mods, date, clsPrefix, 'month'); | ||
if (modifiers) { | ||
@@ -471,0 +476,0 @@ clsMods = modifiers.clsMods; |
{ | ||
"name": "react-calendar", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"author": "Mikhail <freiksenet@gmail.com> Novikov", | ||
@@ -53,2 +53,3 @@ "description": "Calendar component for ReactJS", | ||
"react-hot-loader": "^1.3.0", | ||
"rimraf": "^2.5.2", | ||
"style-loader": "^0.13.0", | ||
@@ -55,0 +56,0 @@ "url-loader": "^0.5.5", |
@@ -38,7 +38,7 @@ import React, { PropTypes } from 'react'; | ||
const Month = (props) => { | ||
const { date, mods, weekNumbers } = props; | ||
const modifiers = getMods(mods, date, clsPrefix, 'month'); | ||
const { date, weekNumbers } = props; | ||
const edges = monthEdges(date); | ||
let { day, week } = props; | ||
let { mods, day, week } = props; | ||
let clsMods, events; | ||
@@ -53,4 +53,8 @@ if (!props.day) { | ||
let clsMods, events; | ||
if (!props.day || !props.week) { // this means we're probably just rendering a single month and need to filter our component types again. | ||
mods = getModsByCompType('month', mods); | ||
} | ||
const modifiers = getMods(mods, date, clsPrefix, 'month'); | ||
if (modifiers) { | ||
@@ -57,0 +61,0 @@ clsMods = modifiers.clsMods; |
50894
1165
32