mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Clicking 'show more' should not dismiss search dropdown.
This commit is contained in:
parent
84549929ba
commit
7a8c26babc
@ -28,7 +28,7 @@
|
|||||||
<a href="{{resultType.moreUrl}}" class="filter">{{i18n "show_more"}} {{fa-icon "chevron-down"}}</a>
|
<a href="{{resultType.moreUrl}}" class="filter">{{i18n "show_more"}} {{fa-icon "chevron-down"}}</a>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{#if resultType.more}}
|
{{#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}}
|
{{/if}}
|
||||||
</div>
|
</div>
|
||||||
{{/each}}
|
{{/each}}
|
||||||
|
@ -80,7 +80,7 @@ export default Discourse.View.extend({
|
|||||||
});
|
});
|
||||||
|
|
||||||
$dropdown.on('click.d-dropdown', function(e) {
|
$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);
|
$html.data('hide-dropdown', hideDropdown);
|
||||||
|
Loading…
Reference in New Issue
Block a user