Merge pull request #1733 from flyerhzm/append-label-only-when-formatted-defined
append label only when formatted is not undefined
This commit is contained in:
commit
0f1372ce72
@ -905,9 +905,9 @@ the specific language governing permissions and limitations under the Apache Lic
|
||||
formatted=opts.formatResult(result, label, query, self.opts.escapeMarkup);
|
||||
if (formatted!==undefined) {
|
||||
label.html(formatted);
|
||||
node.append(label);
|
||||
}
|
||||
|
||||
node.append(label);
|
||||
|
||||
if (compound) {
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user