Navigation Menu

Skip to content

Commit

Permalink
fix: getElement return null on month view in case of hidden schedules (
Browse files Browse the repository at this point in the history
…close #161)
  • Loading branch information
Dongsik Yoo committed Jul 16, 2018
1 parent 19bb817 commit 54da811
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/view/month/month.js
Expand Up @@ -273,7 +273,7 @@ Month.prototype._invokeAfterRenderSchedule = function(matrices) {
util.forEachArray(matrices, function(matrix) {
util.forEachArray(matrix, function(column) {
util.forEachArray(column, function(scheduleViewModel) {
if (scheduleViewModel) {
if (scheduleViewModel && !scheduleViewModel.hidden) {
/**
* @event Month#afterRenderSchedule
*/
Expand Down
3 changes: 3 additions & 0 deletions src/js/view/weekday.js
Expand Up @@ -129,6 +129,9 @@ Weekday.prototype.getExceedDate = function(maxCount, eventsInDateRange, range) {
return;
}

// check that this schedule block is not visible after rendered.
viewModel.hidden = true;

period = datetime.range(
viewModel.getStarts(),
viewModel.getEnds(),
Expand Down

0 comments on commit 54da811

Please sign in to comment.