File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed
Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -416,6 +416,7 @@ export class PfSearchInput extends LitElement {
416416 }
417417 this . value = "" ;
418418 this . _toggleInput ! . value = this . value ;
419+ this . #combobox. selected = [ ] ;
419420 }
420421
421422 addOptions ( optionData : {
@@ -425,6 +426,8 @@ export class PfSearchInput extends LitElement {
425426 const options : PfOption [ ] = optionData . map ( optionDetail => {
426427 const option : PfOption = document . createElement ( 'pf-option' ) ;
427428 option . textContent = `${ optionDetail . text } ` ;
429+ option . value = `${ optionDetail . text } ` ;
430+ option . setAttribute ( 'suggestion' , '' ) ;
428431 return option ;
429432 } )
430433 this . append ( ...options ) ;
Original file line number Diff line number Diff line change @@ -72,3 +72,11 @@ slot[name="description"] {
7272 margin-inline-end : 0.5em ;
7373}
7474
75+ : host ([suggestion ]) {
76+ # outer .selected {
77+ background-color : transparent;
78+ }
79+ svg {
80+ display : none;
81+ }
82+ }
You can’t perform that action at this time.
0 commit comments