Fixed publish menu not closing on outside clicks in preview modal

refs https://github.com/TryGhost/Team/issues/459

- using <GhBasicDropdown> in place of <BasicDropdown> hooks into our dropdown service which has more comprehensive body click tracking
This commit is contained in:
Kevin Ansfield 2021-02-12 09:47:46 +00:00
parent 98073637d7
commit f8de0f12de

View File

@ -1,4 +1,4 @@
<BasicDropdown @verticalPosition="below" @onOpen={{action "open"}} @onClose={{action "close"}} as |dd|>
<GhBasicDropdown @verticalPosition="below" @onOpen={{action "open"}} @onClose={{action "close"}} as |dd|>
<dd.Trigger class="gh-btn gh-btn-editor {{if (or (eq this.displayState "published") (eq this.displayState "scheduled")) "green"}} gh-publishmenu-trigger">
<span data-test-publishmenu-trigger>{{this.triggerText}} {{svg-jar "arrow-down"}}</span>
</dd.Trigger>
@ -55,7 +55,7 @@
/>
</footer>
</dd.Content>
</BasicDropdown>
</GhBasicDropdown>
{{#if this.showEmailConfirmationModal}}
<GhFullscreenModal