Skip to content
This repository was archived by the owner on May 16, 2019. It is now read-only.

Commit 1a75be9

Browse files
committed
Merge pull request #1405 from OpenBazaar/FixOverzealousKeyUpOnSearch
don't unhide toggles when they shouldn't be unhidden
2 parents 43f404a + b73395c commit 1a75be9

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

js/views/homeVw.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -436,10 +436,10 @@ module.exports = baseVw.extend({
436436
addressText = addressText ? "#" + addressText.replace(/\s+/g, '') : "";
437437
target.val(addressText);
438438
window.obEventBus.trigger("setAddressBar", {'addressText': addressText});
439-
}
440-
441-
if(target.val() == ""){
442-
this.searchItemsClear();
439+
} else if(e.keyCode == 8 || e.keyCode == 46) {
440+
if(target.val() == "") {
441+
this.searchItemsClear();
442+
}
443443
}
444444
},
445445

@@ -451,7 +451,6 @@ module.exports = baseVw.extend({
451451
window.obEventBus.trigger("setAddressBar", {'addressText': ""});
452452

453453
this.$el.find('.js-discoverHeading').html(window.polyglot.t('Discover'));
454-
this.$el.find('.js-homeListingToggle').removeClass('hide');
455454

456455
// change loading text copy
457456
this.$el.find('.js-loadingText').html(this.$el.find('.js-loadingText').data('defaultText'));

0 commit comments

Comments
 (0)