Revert "Fixed Tab key not respecting opts.selectOnBlur" breaks tab key. fixes #1646.
This reverts commit 6eb74930d5
.
This commit is contained in:
parent
9380a0678c
commit
ca7550bf4d
10
select2.js
10
select2.js
@ -1927,10 +1927,7 @@ the specific language governing permissions and limitations under the Apache Lic
|
|||||||
killEvent(e);
|
killEvent(e);
|
||||||
return;
|
return;
|
||||||
case KEY.TAB:
|
case KEY.TAB:
|
||||||
// if selectOnBlur == true, select the currently highlighted option
|
this.selectHighlighted({noFocus: true});
|
||||||
if (this.opts.selectOnBlur) {
|
|
||||||
this.selectHighlighted({noFocus: true});
|
|
||||||
}
|
|
||||||
return;
|
return;
|
||||||
case KEY.ESC:
|
case KEY.ESC:
|
||||||
this.cancel(e);
|
this.cancel(e);
|
||||||
@ -2522,10 +2519,7 @@ the specific language governing permissions and limitations under the Apache Lic
|
|||||||
killEvent(e);
|
killEvent(e);
|
||||||
return;
|
return;
|
||||||
case KEY.TAB:
|
case KEY.TAB:
|
||||||
// if selectOnBlur == true, select the currently highlighted option
|
this.selectHighlighted({noFocus:true});
|
||||||
if (this.opts.selectOnBlur) {
|
|
||||||
this.selectHighlighted({noFocus:true});
|
|
||||||
}
|
|
||||||
this.close();
|
this.close();
|
||||||
return;
|
return;
|
||||||
case KEY.ESC:
|
case KEY.ESC:
|
||||||
|
Loading…
Reference in New Issue
Block a user