Skip to content

Commit

Permalink
Merge pull request #24 from lucasnetau/safari-list-fix
Browse files Browse the repository at this point in the history
Workaround for Safari auto-complete focus loss
  • Loading branch information
jcubic authored Aug 23, 2022
2 parents 63dce4b + b2f7f93 commit e7a66c9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tagger.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@
wrapper.appendChild(this._ul);
li.appendChild(this._completion);
this._add_events();
this._toggle_completion(false);
if (this._settings.completion.list instanceof Array) {
this._build_completion(this._settings.completion.list);
}
Expand Down Expand Up @@ -233,7 +234,7 @@
if (toggle) {
this._new_input_tag.setAttribute('list', 'tagger-completion-' + this._id);
} else {
this._new_input_tag.removeAttribute('list');
this._new_input_tag.setAttribute('list', 'tagger-completion-disabled-' + this._id);
}
},
// --------------------------------------------------------------------------------------
Expand Down

0 comments on commit e7a66c9

Please sign in to comment.