Skip to content

Commit e7a66c9

Browse files
authored
Merge pull request #24 from lucasnetau/safari-list-fix
Workaround for Safari auto-complete focus loss
2 parents 63dce4b + b2f7f93 commit e7a66c9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tagger.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@
145145
wrapper.appendChild(this._ul);
146146
li.appendChild(this._completion);
147147
this._add_events();
148+
this._toggle_completion(false);
148149
if (this._settings.completion.list instanceof Array) {
149150
this._build_completion(this._settings.completion.list);
150151
}
@@ -233,7 +234,7 @@
233234
if (toggle) {
234235
this._new_input_tag.setAttribute('list', 'tagger-completion-' + this._id);
235236
} else {
236-
this._new_input_tag.removeAttribute('list');
237+
this._new_input_tag.setAttribute('list', 'tagger-completion-disabled-' + this._id);
237238
}
238239
},
239240
// --------------------------------------------------------------------------------------

0 commit comments

Comments
 (0)