Skip to content

Commit

Permalink
Fix document.createElement reference in README example (#110)
Browse files Browse the repository at this point in the history
  • Loading branch information
mvl22 authored Oct 22, 2023
1 parent 1e6ce4d commit 46f42b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,12 +134,12 @@ autocomplete({
minLength: 2,
emptyMsg: 'No elements found',
render: function(item, currentValue) {
var div = doc.createElement('div');
var div = document.createElement('div');
div.textContent = item.label;
return div;
},
renderGroup: function(groupName, currentValue) {
var div = doc.createElement('div');
var div = document.createElement('div');
div.textContent = groupName;
return div;
},
Expand Down

0 comments on commit 46f42b0

Please sign in to comment.