Skip to content

Commit 1639f0f

Browse files
author
Tautvilas Mečinskas
authored
Merge pull request #321 from Agontuk/period-marking-fix
getDrawingStyle: use marking data from given parameter instead of from current props
2 parents e5b5e69 + 922ec8d commit 1639f0f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/calendar/day/period/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@ class Day extends Component {
5858
if (!marking) {
5959
return defaultStyle;
6060
}
61-
if (this.props.marking.disabled) {
61+
if (marking.disabled) {
6262
defaultStyle.textStyle.color = this.theme.textDisabledColor;
63-
} else if (this.props.marking.selected) {
63+
} else if (marking.selected) {
6464
defaultStyle.textStyle.color = this.theme.selectedDayTextColor;
6565
}
6666
const resultStyle = ([marking]).reduce((prev, next) => {

0 commit comments

Comments
 (0)