Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/tom-select.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2255,9 +2255,9 @@ export default class TomSelect extends MicroPlugin(MicroEvent){
option_el = getDom('<option value="' + escape_html(value) + '">' + escape_html(label) + '</option>') as HTMLOptionElement;
}

// don't move empty option from top of list
// fixes bug in firefox https://bugzilla.mozilla.org/show_bug.cgi?id=1725293
if( option_el != empty_option ){
if( option_el == empty_option ){
self.input.prepend(option_el);
} else {
self.input.append(option_el);
}

Expand Down