Commit 204afc1b authored by Clement Ho's avatar Clement Ho

Fix karma test

parent 6c6de7f1
...@@ -144,9 +144,8 @@ import FilteredSearchContainer from './container'; ...@@ -144,9 +144,8 @@ import FilteredSearchContainer from './container';
const isElementInDynamicFilterDropdown = e.target.closest('.filter-dropdown') !== null; const isElementInDynamicFilterDropdown = e.target.closest('.filter-dropdown') !== null;
const isElementInStaticFilterDropdown = e.target.closest('ul[data-dropdown]') !== null; const isElementInStaticFilterDropdown = e.target.closest('ul[data-dropdown]') !== null;
if (!isElementInFilteredSearch && if (!isElementInFilteredSearch && !isElementInDynamicFilterDropdown &&
!isElementInDynamicFilterDropdown && !isElementInStaticFilterDropdown && inputContainer) {
!isElementInStaticFilterDropdown) {
inputContainer.classList.remove('focus'); inputContainer.classList.remove('focus');
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment