Skip to content

Commit

Permalink
Bump NPM version and added a missing comment
Browse files Browse the repository at this point in the history
  • Loading branch information
denis-taran committed Jul 29, 2021
1 parent c50fa58 commit 50a2fe8
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 3 deletions.
4 changes: 4 additions & 0 deletions autocomplete.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ export interface AutocompleteSettings<T extends AutocompleteItem> {
* Autocomplete will be attached to this element.
*/
input: HTMLInputElement;
/**
* Provide your own container for the widget.
* If not specified, a new DIV element will be created.
*/
container?: HTMLDivElement;
/**
* This method allows you to override the default rendering function for items.
Expand Down
2 changes: 1 addition & 1 deletion autocomplete.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion autocomplete.min.js.map

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions autocomplete.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ export interface AutocompleteSettings<T extends AutocompleteItem> {
* Autocomplete will be attached to this element.
*/
input: HTMLInputElement;
/**
* Provide your own container for the widget.
* If not specified, a new DIV element will be created.
*/
container?: HTMLDivElement;
/**
* This method allows you to override the default rendering function for items.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "autocompleter",
"version": "6.1.1",
"version": "6.1.2",
"description": "Blazing fast and lightweight autocomplete library without dependencies. 1KB gzipped.",
"main": "autocomplete.js",
"scripts": {
Expand Down
1 change: 1 addition & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ You can pass the following options to `autocomplete`:
|`preventSubmit`|Prevents automatic form submit when ENTER is pressed.|`false`|
|`showOnFocus`|Displays suggestions on focus of the input element. Note that if `true`, the minLength property will be ignored and it will always call `fetch`.|`false`|
|`disableAutoSelect`|Prevents the first item in the list from being selected automatically. This option allows you to submit a custom text by pressing `ENTER` even when autocomplete is displayed.|`false`|
|`container`|Provide your own container for the widget. If not specified, a new DIV element will be created.|`undefined`|

### Sample config using all options

Expand Down

0 comments on commit 50a2fe8

Please sign in to comment.