diff --git a/calendar/templates/month_detailed.mustache b/calendar/templates/month_detailed.mustache index 59a530011b6..f39883fa9a4 100644 --- a/calendar/templates/month_detailed.mustache +++ b/calendar/templates/month_detailed.mustache @@ -166,7 +166,7 @@ require([ M.util.js_pending("month-detailed-{{uniqid}}-filterChanged"); // A filter value has been changed. // Find all matching cells in the popover data, and hide them. - var target = $("#month-detailed-{{uniqid}}").find(CalendarSelectors.eventType[data.type]); + var target = root.find(CalendarSelectors.eventType[data.type]); var transitionPromise = $.Deferred(); if (data.hidden) {