remove down carat from typed input with only 1 type

This commit is contained in:
Dave Conway-Jones
2018-02-03 00:02:49 +00:00
committed by Nick O'Leary
parent 98f7271ac8
commit 884618adfe
2 changed files with 7 additions and 4 deletions

View File

@@ -116,7 +116,9 @@
this.options.types = this.options.types||Object.keys(allOptions);
this.selectTrigger = $('<button tabindex="0"></button>').prependTo(this.uiSelect);
$('<i class="fa fa-sort-desc"></i>').appendTo(this.selectTrigger);
if (this.options.types.length > 1) {
$('<i class="fa fa-sort-desc"></i>').appendTo(this.selectTrigger);
}
this.selectLabel = $('<span></span>').appendTo(this.selectTrigger);
this.types(this.options.types);