Browse Source

Rlsnotes and condense logic further #3085

pull/4046/head
Jack Lukic 8 years ago
parent
commit
2c44d667aa
2 changed files with 3 additions and 2 deletions
  1. 1
      RELEASE-NOTES.md
  2. 4
      src/definitions/modules/dropdown.js

1
RELEASE-NOTES.md

@ -12,6 +12,7 @@
- **Dropdown** - Multiple select dropdown now sizes current dropdown input based on rendered width of a hidden element, not using an estimate based on character count. This means search will never break to a second line earlier than would normally fit in current line.
- **Dropdown** - Added new setting for search selection `hideAdditions` this will remove showing user additions inside the menu, making for a more intuitive adding process. Dropdowns now have a new state `empty` which will format an active dropdown with empty results. #3791
- **Dropdown** - Adds new `allowReselection` option to trigger `onChange` events even when reselecting same value ***NEEEDS DOCUMENTATION***
- **Dropdown** - Added `fullSearchSearch: 'exact'` setting, which requires exact matches for dropdown values #3085 #3994 **Thanks @ShawnCholeva**
- **All UI** - All UI now include _all_ sizing variations, `mini`, `tiny`, `small`, `large`, `big`, `huge`, `massive`. Headers remain with only 5 sizes `small-huge` to match `H1-H5`
- **Icons** - Icons now use the latest Font Awesome `4.5.0` Icons. 50+ new icons+ are included. Thanks @BreadMaker for the PR and @davegandy for the font!
- **Progress** - Progress now uses a polling interval for updates. Rapidly updating the progress bar over a period quicker than the animation duration (for example with xhr `onprogress` events say every 50ms) will now appear smooth as butter.

4
src/definitions/modules/dropdown.js

@ -783,7 +783,7 @@ $.fn.dropdown = function(parameters) {
results.push(this);
return true;
}
else if (settings.fullTextSearch !== 'exact' && settings.fullTextSearch && module.fuzzySearch(searchTerm, text)) {
else if (settings.fullTextSearch === true && module.fuzzySearch(searchTerm, text)) {
results.push(this);
return true;
}
@ -841,7 +841,7 @@ $.fn.dropdown = function(parameters) {
},
exactSearch: function (query, term) {
query = query.toLowerCase();
term = term.toLowerCase();
term = term.toLowerCase();
if(term.indexOf(query) > -1) {
return true;
}

Loading…
Cancel
Save