Commit 6c6de7f1 authored by Clement Ho's avatar Clement Ho

Add additional check for when inputContainer does not exist

parent 19677dd4
...@@ -131,7 +131,11 @@ import FilteredSearchContainer from './container'; ...@@ -131,7 +131,11 @@ import FilteredSearchContainer from './container';
} }
addInputContainerFocus() { addInputContainerFocus() {
this.filteredSearchInput.closest('.filtered-search-input-container').classList.add('focus'); const inputContainer = this.filteredSearchInput.closest('.filtered-search-input-container');
if (inputContainer) {
inputContainer.classList.add('focus');
}
} }
removeInputContainerFocus(e) { removeInputContainerFocus(e) {
......
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