@@ -107,7 +107,7 @@ export default class Util {
107107 listDOMstring += '<li class="list-item">' ;
108108 if ( options . icons . length > 0 ) {
109109 if ( options . icons [ index ] !== undefined && options . icons [ index ] !== null && typeof options . icons [ index ] === 'string' ) {
110- listDOMstring += options . icons [ index ] ;
110+ listDOMstring += IconHelper . getIconTag ( options . icons [ index ] ) ;
111111 } else {
112112 listDOMstring += IconHelper . getIconTag ( 'default' ) ;
113113 }
@@ -136,13 +136,21 @@ export default class Util {
136136 } ) ;
137137 var listDOMstring = '' ;
138138 if ( filteredItems . length > 0 ) {
139- filteredItems . forEach ( function ( currentValue ) {
140- listDOMstring += '<li class="list-item"><p class="value">' ;
139+ filteredItems . forEach ( function ( currentValue , index ) {
140+ listDOMstring += '<li class="list-item">' ;
141+ if ( options . icons . length > 0 ) {
142+ if ( options . icons [ index ] !== undefined && options . icons [ index ] !== null && typeof options . icons [ index ] === 'string' ) {
143+ listDOMstring += IconHelper . getIconTag ( options . icons [ index ] ) ;
144+ } else {
145+ listDOMstring += IconHelper . getIconTag ( 'default' ) ;
146+ }
147+ }
148+ listDOMstring += '<p class="value">' ;
141149 listDOMstring += currentValue ;
142150 listDOMstring += '</p></li>' ;
143151 } ) ;
144152 } else {
145- listDOMstring += '<p class="notice"><i>' + options . nothingfound + '</i></p >' ;
153+ listDOMstring += '<li class="notice"><i>' + options . nothingfound + '</i></li >' ;
146154 }
147155 $ ( '#prompt-list' ) . append ( listDOMstring ) ;
148156 } ) ;
0 commit comments