Skip to content

Commit

Permalink
Fix #945, Update selectOnTab to default to true
Browse files Browse the repository at this point in the history
  • Loading branch information
risadams committed Nov 12, 2020
1 parent b25a433 commit f4d36fc
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 7 deletions.
13 changes: 9 additions & 4 deletions dist/js/selectize.js
Original file line number Diff line number Diff line change
Expand Up @@ -380,12 +380,17 @@
if (!Selectize.$testInput) {
Selectize.$testInput = $('<span />').css({
position: 'absolute',
top: -99999,
left: -99999,
width: 'auto',
padding: 0,
whiteSpace: 'pre'
}).appendTo('body');
});

$('<div />').css({
position: 'absolute',
width: 0,
height: 0,
overflow: 'hidden'
}).append(Selectize.$testInput).appendTo('body');
}

Selectize.$testInput.text(str);
Expand Down Expand Up @@ -2719,7 +2724,7 @@
maxItems: null,
hideSelected: null,
addPrecedence: false,
selectOnTab: false,
selectOnTab: true,
preload: false,
allowEmptyOption: false,
closeAfterSelect: false,
Expand Down
2 changes: 1 addition & 1 deletion dist/js/selectize.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/js/standalone/selectize.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/defaults.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Selectize.defaults = {
maxItems: null,
hideSelected: null,
addPrecedence: false,
selectOnTab: false,
selectOnTab: true,
preload: false,
allowEmptyOption: false,
closeAfterSelect: false,
Expand Down

0 comments on commit f4d36fc

Please sign in to comment.