diff --git a/RELEASE-NOTES.md b/RELEASE-NOTES.md
index c7cc2b3fd..2c037779a 100644
--- a/RELEASE-NOTES.md
+++ b/RELEASE-NOTES.md
@@ -43,6 +43,7 @@
- **Dropdown** - Dropdowns now automatically observe changes in `menu` and will update selector cache with new additions
- **Dropdown** - Added `showOnFocus` option that lets you specify whether dropdown menu should show on focus
- **Dropdown** - `fullTextSearch: true` now uses fuzzy search (same as `ui search`)
+- **Dropdown** - Page down and page up now works with dropdown menus
- **Form** - Added placeholder color rules for IE, `ms-input-placeholder`
- **Form** - Fix `errored field` dropdown keyboard selection color
- **Form Validation** - `data-validate` now takes precedence over other validation matching schemes like `name` or `id`
diff --git a/src/definitions/modules/dropdown.js b/src/definitions/modules/dropdown.js
index 351f74d6b..f4eecb451 100644
--- a/src/definitions/modules/dropdown.js
+++ b/src/definitions/modules/dropdown.js
@@ -169,6 +169,9 @@ $.fn.dropdown = function(parameters) {
query = module.get.query()
;
module.verbose('Searching for query', query);
+ if(settings.allowAdditions) {
+ module.add.userChoice();
+ }
module.filter(query);
if(module.is.searchSelection() && module.can.show() ) {
module.show();
@@ -1757,11 +1760,35 @@ $.fn.dropdown = function(parameters) {
html = settings.templates.message(message)
;
if($message.length > 0) {
- module.remove.message();
+ $message
+ .html(html)
+ ;
+ }
+ else {
+ $message = $('
')
+ .html(html)
+ .addClass(className.message)
+ .appendTo($menu)
+ ;
}
- $message = $(html)
- .appendTo($menu)
+ },
+ userChoice: function(choice) {
+ var
+ $addition = $menu.children(selector.addition),
+ html = settings.templates.addition(choice)
;
+ if($addition.length > 0) {
+ $addition
+ .html(html)
+ ;
+ }
+ else {
+ $addition = $('')
+ .html(html)
+ .addClass(className.addition)
+ .prependTo($menu)
+ ;
+ }
},
variables: function(message) {
var
@@ -2345,71 +2372,45 @@ $.fn.dropdown.settings = {
verbose : false,
performance : true,
- on : 'click',
- // what event should show menu
-
- action : 'activate',
- // action on item selection
-
- allowTab : true,
- // add tabindex to element
-
- showOnFocus : true,
- // show menu on focus
-
- fullTextSearch : false,
- // search anywhere in value
+ on : 'click', // what event should show menu action on item selection
+ action : 'activate', // action on item selection
- placeholder : 'auto',
- // whether to convert blank