We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5a9de0e commit f180d02Copy full SHA for f180d02
1 file changed
elements/pf-search-input/pf-search-input.ts
@@ -208,11 +208,13 @@ export class PfSearchInput extends LitElement {
208
});
209
210
static {
211
- document.addEventListener('click', event => {
212
- for (const instance of PfSearchInput.instances) {
213
- instance._onOutsideClick(event);
214
- }
215
- });
+ if (!isServer) {
+ document.addEventListener('click', event => {
+ for (const instance of PfSearchInput.instances) {
+ instance._onOutsideClick(event);
+ }
216
+ });
217
218
}
219
220
connectedCallback(): void {
0 commit comments