Merge pull request #3600 from tgxworld/fix_search_show_more_dismissing
FIX: Clicking 'show more' should not dismiss search dropdown.
This commit is contained in:
commit
d247c002bc
|
@ -28,7 +28,7 @@
|
|||
<a href="{{resultType.moreUrl}}" class="filter">{{i18n "show_more"}} {{fa-icon "chevron-down"}}</a>
|
||||
{{/if}}
|
||||
{{#if resultType.more}}
|
||||
<a href class="filter" {{action "moreOfType" resultType.type bubbles=false}}>{{i18n "show_more"}} {{fa-icon "chevron-down"}}</a>
|
||||
<a href class="filter filter-type" {{action "moreOfType" resultType.type bubbles=false}}>{{i18n "show_more"}} {{fa-icon "chevron-down"}}</a>
|
||||
{{/if}}
|
||||
</div>
|
||||
{{/each}}
|
||||
|
|
|
@ -80,7 +80,7 @@ export default Discourse.View.extend({
|
|||
});
|
||||
|
||||
$dropdown.on('click.d-dropdown', function(e) {
|
||||
return $(e.target).closest('a').not('.search-link').length > 0 ? hideDropdown.apply(self) : true;
|
||||
return $(e.target).closest('a').not('.search-link, .filter-type').length > 0 ? hideDropdown.apply(self) : true;
|
||||
});
|
||||
|
||||
$html.data('hide-dropdown', hideDropdown);
|
||||
|
|
Loading…
Reference in New Issue