File tree 2 files changed +6
-5
lines changed
2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -799,18 +799,19 @@ class Input extends UI5Element {
799
799
}
800
800
801
801
previewSuggestion ( item ) {
802
- const emptyValue = item . type === "Inactive" || item . group ;
803
802
this . valueBeforeItemSelection = this . value ;
804
- this . updateValueOnPreview ( emptyValue ? "" : item . effectiveTitle ) ;
803
+ this . updateValueOnPreview ( item ) ;
805
804
this . announceSelectedItem ( ) ;
806
805
this . _previewItem = item ;
807
806
}
808
807
809
808
/**
810
809
* Updates the input value on item preview.
811
- * @param {itemValue } itemValue The value of the item that is on preview
810
+ * @param {Object } item The item that is on preview
812
811
*/
813
- updateValueOnPreview ( itemValue ) {
812
+ updateValueOnPreview ( item ) {
813
+ const noPreview = item . type === "Inactive" || item . group ;
814
+ const itemValue = noPreview ? "" : ( item . effectiveTitle || item . textContent ) ;
814
815
this . value = itemValue ;
815
816
}
816
817
Original file line number Diff line number Diff line change @@ -318,7 +318,7 @@ class Suggestions {
318
318
}
319
319
320
320
_getItems ( ) {
321
- return [ ] . slice . call ( this . responsivePopover . querySelectorAll ( "ui5-li-groupheader, ui5-li-suggestion-item" ) ) ;
321
+ return [ ... this . responsivePopover . querySelectorAll ( "ui5-list>*" ) ] ;
322
322
}
323
323
324
324
_getComponent ( ) {
You can’t perform that action at this time.
0 commit comments