-
Entire library is vanilla javascript, no more coffeescript.
-
Modular build process using browserify, emits a UMD compatible top level module.
-
No more jquery dependency.
-
Testing is now run headlessly with karma.
-
There aren't any more callbacks, everything is event based now. This is how the events break down:
- onAdd -> 'choose'
- onRem -> 'reject'
- onBlur -> 'blur'
- onFocus -> 'focus'
- Passing
{ silent: true }
toaddChosen
orremChosen
avoids triggering any registered callbacks.
- Package compiled output in a universal module definition
- Position the dropdown below the trigger, and add a dropdownOffset option.
- Add onFocus and onBlur callback options.
- Loosen jQuery constraint to any 2.x release
- Fix dropdown positioning with an empty list.
- Position the dropdown when filtering choices, the same as during navigation.
- Tollerate (ignore) null or undefined choice input during preload.
- Fully blur the input when
escape
is pressed while input is blank and there arent't any choices highlighted. That includes dropdowns.
- Correctly re-position the dropdown after choices are removed.
- Force the dropdown menu to always be below the bottom of the input.
- Always re-render the choices on escape. Corrects partial list being displayed after filtering.
- Stop propagation when
escape
is pressed. It is common for velge to be loaded inside of a modal, most of which will close whenescape
is pressed.
- Root object level version,
Velge.VERSION
. - Change the behavior of "tab" to autocomplete and cycle through choices.
- Top level methods for extracting all choices and all chosen.
- Keyboard interface for highlighting chosen. Use left and right arrows to highlight chosen items.
- Keyboard interface for removing chosen. Backspace to highlight the last chosen item, backspace again to remove it.
- More reliable tag height and positioning.
- Define max-width on list to avoid overlap with handle.
- Enforce tag height and better vertical alignment.
- Emphasize characters that match during fuzzy search.
- Customizable placeholder value.
- Enforce "single" mode when clicking on choices directly.
- Remove placeholder class and styling from input. Caused unecessary padding.
- Callbacks setters accept a context object that will be used when calling.
- Use
Velge#remChosen
when un-choosing from the UI. This change ensures that thenonRem
callbacks are fired properly. - Fix callback application, callback methods were being invoked with the choice
passed as the
this
value.
- Add single choice mode.
- Show examples for single and multi modes.
- Prevent default keyboard.
- Prevent fuzzy matches from including chosen choices.
- Style fixes for line heights and positioning.
- Initial release, all basic functionality in place.