Skip to content
Snippets Groups Projects
Unverified Commit 649cda10 authored by Tomas Bulva's avatar Tomas Bulva Committed by GitLab
Browse files

Merge branch 'kkloss-fix-getcomputedstyle-error-mounting-global-search-header' into 'master'

Fix getComputedStyle error when mounting global search header

See merge request https://gitlab.com/gitlab-org/gitlab/-/merge_requests/169142



Merged-by: default avatarTomas Bulva <tbulva@gitlab.com>
Approved-by: default avatarTomas Bulva <tbulva@gitlab.com>
Co-authored-by: default avatarKev Kloss <kkloss@gitlab.com>
parents 137158c7 f4161284
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -40,8 +40,10 @@ export default {
};
},
mounted() {
this.isNarrowScreen = isNarrowScreen(this.$refs?.buttonRoot);
isNarrowScreenAddListener(this.$refs?.buttonRoot, this.handleNarrowScreenChange);
if (this.$refs?.buttonRoot) {
this.isNarrowScreen = isNarrowScreen(this.$refs.buttonRoot);
isNarrowScreenAddListener(this.$refs.buttonRoot, this.handleNarrowScreenChange);
}
},
beforeDestroy() {
isNarrowScreenRemoveListener(this.$refs.buttonRoot, this.handleNarrowScreenChange);
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment