Skip to content

Commit e33d084

Browse files
author
AMJones
committed
Fixes tab capture in search-field.js.
1 parent 19e4a23 commit e33d084

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"css"
1111
],
1212
"homepage": "https://www.github.com/strapless/base",
13-
"version": "1.1.11",
13+
"version": "1.1.12",
1414
"authors": [
1515
{
1616
"name": "Aaron M Jones",

js/search-field.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,12 @@
5757

5858
switch (keyPressed) {
5959
case keys.ESC:
60-
$input.val('');
60+
$input.val('').trigger('change');
6161
return;
6262
case keys.TAB:
63+
if( plugin.currentValue !== $input.val() ) { plugin.doCallback(); }
64+
return;
6365
case keys.RETURN:
64-
// Perform immediate search
6566
if( plugin.currentValue !== $input.val() ) { plugin.doCallback(); }
6667
break;
6768
default:

0 commit comments

Comments
 (0)