Skip to content

Commit 901990f

Browse files
committed
chore: code cleanup
1 parent fe4c0ef commit 901990f

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed

elements/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@
4646
"./pf-progress-stepper/pf-progress-stepper.js": "./pf-progress-stepper/pf-progress-stepper.js",
4747
"./pf-progress/pf-progress.js": "./pf-progress/pf-progress.js",
4848
"./pf-search-input/pf-search-input.js": "./pf-search-input/pf-search-input.js",
49-
"./pf-search-input/pf-search-input-option.js":"./pf-search-input/pf-search-input-option.js",
5049
"./pf-spinner/pf-spinner.js": "./pf-spinner/pf-spinner.js",
5150
"./pf-switch/pf-switch.js": "./pf-switch/pf-switch.js",
5251
"./pf-table/pf-table.js": "./pf-table/pf-table.js",

elements/pf-search-input/pf-search-input.ts

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,7 @@ import { FloatingDOMController } from '@patternfly/pfe-core/controllers/floating
1616
import { arraysAreEquivalent } from '@patternfly/pfe-core/functions/arraysAreEquivalent.js';
1717
import { observes } from '@patternfly/pfe-core/decorators/observes.js';
1818

19-
import { PfSearchInputOption } from './pf-search-input-option.js';
2019
import styles from './pf-search-input.css';
21-
import type { PfButton } from '../pf-button/pf-button.js';
2220
import { PfOption } from '../pf-select/pf-option.js';
2321
import { bound } from '@patternfly/pfe-core/decorators.js';
2422

@@ -43,11 +41,9 @@ export class PfSearchInput extends LitElement {
4341
delegatesFocus: true,
4442
};
4543

46-
4744
/** Accessible label for the select */
4845
@property({ attribute: 'accessible-label' }) accessibleLabel?: string;
4946

50-
5147
/** Multi listbox button text */
5248
@property({ attribute: 'items-selected-text' }) itemsSelectedText = 'items selected';
5349

@@ -75,7 +71,6 @@ export class PfSearchInput extends LitElement {
7571
*/
7672
@property({ reflect: true }) position: Placement = 'bottom';
7773

78-
7974
@query('#toggle-input') private _toggleInput?: HTMLInputElement;
8075

8176
@query('#toggle-button') private _toggleButton?: HTMLDivElement;
@@ -124,15 +119,12 @@ export class PfSearchInput extends LitElement {
124119
document.removeEventListener('click', this._onOutsideClick);
125120
}
126121

127-
128-
// Function to handle the closing of popover and month select popup on outside click
122+
// Function to handle the closing of popover
129123
@bound private _onOutsideClick(event: MouseEvent) {
130124
const path = event.composedPath();
131125
if (!path.includes(this._searchInputContainer)) {
132126
if (this.expanded) {
133127
this.expanded = false;
134-
} else {
135-
//this._popover.hide();
136128
}
137129
}
138130
}

0 commit comments

Comments
 (0)