Skip to content

Commit

Permalink
Don't auto-focus the input in multiple mode
Browse files Browse the repository at this point in the history
Fixes #36
  • Loading branch information
nilshoerrmann committed Sep 15, 2014
1 parent 099acbc commit 3bc9662
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions assets/aui.selector.publish.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,11 @@
selectize = storage[0].selectize;
selectize.$control_input.attr('placeholder', Symphony.Language.get('Search and select') + ' …');

// Don't auto-focus the input in multiple mode
if(storage.is('[multiple]')) {
selectize.$control.off('mousedown');
}

// Make sortable
if(field.is('[data-interface="aui-selector-sortable"]')) {
selectize.$control.symphonyOrderable({
Expand Down

0 comments on commit 3bc9662

Please sign in to comment.