Skip to content

Commit

Permalink
Clean up imports
Browse files Browse the repository at this point in the history
  • Loading branch information
afcapel committed Oct 7, 2021
1 parent 2331c9e commit 455f36a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"version": "2.0.0",
"description": "StimulusJS autocomplete component",
"main": "dist/stimulus-autocomplete.js",
"source": "src/index.mjs",
"author": "Alberto Fernández-Capel <afcapel@gmail.com>",
"source": "src/autocomplete.js",
"author": "Alberto Fernández-Capel <alberto@hey.com>",
"license": "MIT",
"private": false,
"keywords": [
Expand Down
4 changes: 3 additions & 1 deletion src/autocomplete.mjs → src/autocomplete.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Controller } from "stimulus"
import debounce from "lodash.debounce"

export default class extends Controller {
export default class Autocomplete extends Controller {
static targets = ["input", "hidden", "results"]
static values = {
submitOnEnter: Boolean,
Expand Down Expand Up @@ -274,3 +274,5 @@ export default class extends Controller {
? el.getAttribute("data-autocomplete-label")
: el.textContent.trim()
}

export { Autocomplete }
3 changes: 0 additions & 3 deletions src/index.mjs

This file was deleted.

0 comments on commit 455f36a

Please sign in to comment.