Releases: darrenjennings/vue-autosuggest
fix: name attribute now configurable
Name attribute on the input is now configurable via inputProps: { name: "my-input-name" }
Thanks to @hemantsinghi for filing the issue.
Native events using transparent wrappers, bugfixes
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:
1.3.1
- 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
- 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
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
-
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.
Bug fixes
v0.0.2-beta.8 Bugfixes release with version number bump. Building docs.
0.0.2-beta.6 - Multiple Sections
Implementing first version of data driven multiple sections.