Releases: zurb/tribute
Dropdown positioning fix, build improvements and z-index fix
This release improves the dropdown positioning, npm package publication and z-index
customization issues.
Changes:
- BREAKING CHANGE: We have removed
z-index
from the JavaScript, it is now only set in the CSS so it can be overridden in your own styles. #307 - Menu Positioning: Improve menu positioning when the input isn't the lowest element on the page. #331
- NPM package missing files: Fixed an issue where the src directory was not included in the NPM release and some other smaller build improvements. #317, #316, #315
Thanks to @iskandiar, @aldhsu, @DanielRuf for their contributions to this release!
Upgrade to Babel 7 & Cleanup Build System
This is a release to cleanup the build folder that was causing conflicts with TypeScript as well as upgrade to Babel 7.
Thanks @sibiraj-sr and @DanielRuf for the help with this!
Security updates and bug fixes
- Updated several vulnerable development dependencies.
- Add
context
andinstance
to tribute-replaced event. #237 - Skip local search: #271
new Tribute({ searchOpts: { skip: true } });
- Fix cursor up and down not working on textarea with autocomplete. #280
- Accurately find
li
in html templates: #297
Thanks to @andreynering, @onhate, @Postlagerkarte, and @mlturner88 for your help with this release!
Introduce menuItemLimit
- Improve performance for large lists by introducing an optional limit,
menuItemLimit
. @andreynering #240
Thanks!
Testing and Highlights
Tribute Autocomplete
Remove resetSelection
resetSelection
is no longer needed.
Set default noMatchTemplate
Without a default noMatchTemplate
then hitting backspace will not trigger the dropdown again. #53 (comment)
Fix bug in last release related to mouseup
3.5.0
introduced an update that bound to mouseup instead of mousedown. This release reverts that change and cleans out some old unused bindings.
Positioning, Event Binding and Space event selection, oh my!
This update fixes some position issues on mobile-size device screens of the menu as well as introduces some new configuration options.
- Correctly position menu on mobile devices with limited screen real estate. #177 Thank you @fynnfeldpausch!
- Use mouseup instead of mousedown for event binding. #176 Thank you again @fynnfeldpausch!
- Return mention text in lookup when
lookup
is a function. 3e805c5
lookup: function (item, mentionText) {
...
}
- Add support for selecting match when spacebar is pressed. This is disabled by default and can been enabled by setting
spaceSelectsMatch
to true in your config. 994fbf2 Thank you @htmltiger for the suggestion.
Thank you to everyone who contributed to this release!