Skip to content
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.

Commit

Permalink
Bug 1026716 - Selecting a search suggestion should update the search …
Browse files Browse the repository at this point in the history
…field but keep the keyboard on display
  • Loading branch information
crdlc authored and KevinGrandon committed Jun 21, 2014
1 parent 77d7807 commit b816589
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions apps/system/js/rocketbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -875,6 +875,7 @@
break;
case 'input':
this.input.value = e.detail.input;
this.focus();
this.handleInput();
break;
case 'request-screenshot':
Expand Down
3 changes: 3 additions & 0 deletions apps/system/test/unit/rocketbar_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -793,8 +793,11 @@ suite('system/Rocketbar', function() {
input: 'http://example.com'
}
};
var spy = sinon.spy(subject, 'focus');
subject.handleSearchMessage(event);
assert.equal(subject.input.value, 'http://example.com');
assert.isTrue(spy.called);
spy.restore();

// Hide message
event = {
Expand Down

0 comments on commit b816589

Please sign in to comment.