@@ -16,9 +16,7 @@ import { FloatingDOMController } from '@patternfly/pfe-core/controllers/floating
1616import { arraysAreEquivalent } from '@patternfly/pfe-core/functions/arraysAreEquivalent.js' ;
1717import { observes } from '@patternfly/pfe-core/decorators/observes.js' ;
1818
19- import { PfSearchInputOption } from './pf-search-input-option.js' ;
2019import styles from './pf-search-input.css' ;
21- import type { PfButton } from '../pf-button/pf-button.js' ;
2220import { PfOption } from '../pf-select/pf-option.js' ;
2321import { 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