File tree 2 files changed +6
-6
lines changed
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -138,7 +138,7 @@ const metadata = {
138
138
*
139
139
* @type {boolean }
140
140
* @defaultvalue false
141
- * @public
141
+ * @private
142
142
* @sicne 1.0.0-rc.8
143
143
*/
144
144
highlight : {
@@ -814,13 +814,13 @@ class Input extends UI5Element {
814
814
815
815
enableSuggestions ( ) {
816
816
if ( this . Suggestions ) {
817
- this . Suggestions . highlight = this . highlight ;
818
817
return ;
819
818
}
820
819
821
820
const Suggestions = getFeature ( "InputSuggestions" ) ;
821
+
822
822
if ( Suggestions ) {
823
- this . Suggestions = new Suggestions ( this , "suggestionItems" , this . highlight ) ;
823
+ this . Suggestions = new Suggestions ( this , "suggestionItems" , true ) ;
824
824
} else {
825
825
throw new Error ( `You have to import "@ui5/webcomponents/dist/features/InputSuggestions.js" module to use ui5-input suggestions` ) ;
826
826
}
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ <h3>Input in Cozy</h3>
26
26
style ="width: 500px "
27
27
show-suggestions
28
28
placeholder ="Search for a country ... "
29
- highlight >
29
+ >
30
30
</ ui5-input >
31
31
</ div >
32
32
@@ -63,7 +63,7 @@ <h3>Input suggestions with grouping</h3>
63
63
</ ui5-input >
64
64
65
65
< h3 > Input suggestions with highlighing</ h3 >
66
- < ui5-input id ="myInputHighlighted " highlight show-suggestions style ="width: 100% ">
66
+ < ui5-input id ="myInputHighlighted " show-suggestions style ="width: 100% ">
67
67
< ui5-suggestion-item text ="Adam D " description ="Administrative Support "> </ ui5-suggestion-item >
68
68
< ui5-suggestion-item text ="Aanya Sing " description ="Administrative Support "> </ ui5-suggestion-item >
69
69
< ui5-suggestion-item text ="Allen K " description ="Technical Support "> </ ui5-suggestion-item >
@@ -288,7 +288,7 @@ <h3>Test ariaLabel and ariaLabelledBy</h3>
288
288
< ui5-input aria-labelledby ="enterNameLabel "> </ ui5-input >
289
289
290
290
< h3 > Input suggestions with highlighing and XSS test</ h3 >
291
- < ui5-input highlight show-suggestions style ="width: 100% ">
291
+ < ui5-input show-suggestions style ="width: 100% ">
292
292
< ui5-suggestion-item text ="<script>alert('XSS')</script> " description ="Administrative Support "> </ ui5-suggestion-item >
293
293
< ui5-suggestion-item text ="Aanya Sing " description ="<b onmouseover=alert('XSS')></b> ">
294
294
</ ui5-suggestion-item >
You can’t perform that action at this time.
0 commit comments