Skip to content
Snippets Groups Projects
Commit 3997471f authored by Tuukka Turu's avatar Tuukka Turu
Browse files

Use cludo.hide instead of adding a class

parent 3d169a5a
No related branches found
No related tags found
No related merge requests found
......@@ -10,6 +10,12 @@ export interface SearchLabels {
label?: string;
}
declare global {
interface Window {
CludoSayt: any;
}
}
import {Component, Prop, h, Watch, State, Listen, Host, Event, EventEmitter, Element} from '@stencil/core';
import {ComponentLabels} from '../site-header';
import {ColorVariant} from '../../../utils/utils';
......@@ -97,7 +103,10 @@ export class SiteSearch {
let cludoSayt = document.querySelectorAll('stencil-cludo-sayt')[0] as HTMLElement;
if (cludoSayt) {
cludoSayt.classList.add('hidden');
let CludoSayt = window.CludoSayt;
if (typeof CludoSayt !== 'undefined') {
CludoSayt.hide();
}
}
this.showBackdropShadow();
......
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