Skip to content

Releases: darrenjennings/vue-autosuggest

fix: name attribute now configurable

29 Apr 06:03
Compare
Choose a tag to compare

Name attribute on the input is now configurable via inputProps: { name: "my-input-name" }

Fixes Issue #37
See PR #39

Thanks to @hemantsinghi for filing the issue.

Native events using transparent wrappers, bugfixes

26 Mar 22:21
Compare
Choose a tag to compare

Transparent wrappers are great! https://twitter.com/darrenjennings/status/976923897915367424
@chrisvfritz explains here: https://www.youtube.com/watch?v=7lpemgMhi0k&t=1315s

Now you can use vue-autosuggest to hook into native events of the input like so:

<vue-autosuggest 
  :suggestions="mySuggestions"
  ...
  @keydown.tab="closeSuggestions"
  @click="clickHandler"
  @focus="focusMe"
  @blur="focusMe"
/>

methods: {
  closeSuggestions(e){
    console.log('tab has been pressed!', e);
    this.mySuggestions = [];
   },

PR:
#34

deprecations:

With the usage of native events, you can now bind to @click instead of inputProps.onClick, onBlur, onFocus. Please use @focus, @blur, @click moving forward. The inputProps events still work and are backwards compatible, but will display warning messages now. Note to self to fully deprecate these events in 2.0 release.

Very exciting that with new features, comes new and easier ways to redo existing functionality and make the component api even easier!

bugfixes:

920c885
#33

1.3.1

26 Feb 20:54
3591aaf
Compare
Choose a tag to compare
  • Blur and Focus events added to inputProps
  • passing in oldText for onInputChange(val, oldVal) watcher event
  • Ability to set input autocomplete value. Default = off

Bugfixes, update callback on renderSuggestion

02 Jan 05:18
Compare
Choose a tag to compare
  • Bugfix for scrollTo element not being available and throwing error.
  • Sending back the same object for both rendersuggestion and getsuggestionvalue so user can decide what to render based on section type.

v1.1.0 - getSuggestionValue, renderSuggestion props, scrollTo behavior

02 Jan 02:34
fdc2624
Compare
Choose a tag to compare

New Features

  • Added getSuggestionValue and renderSuggestion props. (see readme.md)
  • ScrollTo behavior added for issue #22.

Refactored code:

  • Migrated DefaultSection.vue to createElement + render element for easier rendering of li section
  • utils.js.
  • .prettierrc.js added
  • moved console.log eslintrc to warning
  • moved dom attrs to data props (e.g. id, classnames etc)
  • Upgraded vue-test-utils and refactored tests for updates.

Bugfixes:

  • Fixed bug with currentindex being calculated as a string instead of an int causing weird jumping behavior after exiting the input and then going back in.
  • Removed role="listbox" duplication.

Changed build system -> Rollup, Bugfixes, Extending improvements

01 Dec 07:29
a217dcb
Compare
Choose a tag to compare
  • Exporting default section as component and extending it

  • Switched build to rollup for compatibility with Browserify and smaller bundle sizes.
    Fixed issue with non-required default input props to use nested defaults.

  • Built docs + app + storybook.
    Fixed build script.
    Renamed entrypoint.
    Fixed docs webpack config.

  • Package bump to 1.1.0
    Closes #18
    Closes #16

Bug fixes

06 Nov 19:15
Compare
Choose a tag to compare
Bug fixes Pre-release
Pre-release
v0.0.2-beta.8

Bugfixes release with version number bump. Building docs.

0.0.2-beta.6 - Multiple Sections

03 Nov 19:53
Compare
Choose a tag to compare
Pre-release

Implementing first version of data driven multiple sections.