mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-03-18 02:21:47 -05:00
🐛 Fixed broken close
buttons on modals (#15514)
* 🐛 Fixed broken `close` button on modals
no issue
Some modals' close elements containing `{{on "click" @close}}` and `href=""` would not take the 'on cl
ick' function into account, meaning the whole page would get redirected to "/" (back to the root of the dashboard) instead of just closing the modal.
This commit is contained in:
parent
8751245fa5
commit
226794e201
4 changed files with 4 additions and 4 deletions
|
@ -2,7 +2,7 @@
|
|||
<header class="modal-header" data-test-modal="add-label-members">
|
||||
<h1>Add Label</h1>
|
||||
</header>
|
||||
<a class="close" href="" role="button" title="Close" {{on "click" @close}}>{{svg-jar "close"}}<span class="hidden">Close</span></a>
|
||||
<button type="button" class="close" title="Close" {{on "click" @close}}>{{svg-jar "close"}}<span class="hidden">Close</span></button>
|
||||
|
||||
{{#if this.hasRun}}
|
||||
<div class="gh-content-box pa" data-test-state="add-complete">
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<header class="modal-header" data-test-modal="remove-label-members">
|
||||
<h1>Remove Label</h1>
|
||||
</header>
|
||||
<a class="close" href="" role="button" title="Close" {{on "click" @close}}>{{svg-jar "close"}}<span class="hidden">Close</span></a>
|
||||
<button type="button" class="close" title="Close" {{on "click" @close}}>{{svg-jar "close"}}<span class="hidden">Close</span></button>
|
||||
|
||||
{{#if this.hasRun}}
|
||||
<div class="gh-content-box pa" data-test-state="remove-complete">
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<header class="modal-header" data-test-modal="unsubscribe-members">
|
||||
<h1>Unsubscribe members from email?</h1>
|
||||
</header>
|
||||
<a class="close" href="" role="button" title="Close" {{on "click" @close}}>{{svg-jar "close"}}<span class="hidden">Close</span></a>
|
||||
<button type="button" class="close" title="Close" {{on "click" @close}}>{{svg-jar "close"}}<span class="hidden">Close</span></button>
|
||||
|
||||
{{#if this.hasRun}}
|
||||
<div class="gh-content-box pa" data-test-state="unsubscribe-complete">
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<header class="modal-header">
|
||||
<h1>Are you sure?</h1>
|
||||
</header>
|
||||
<a class="close" href="" role="button" title="Close" {{on "click" @close}}>{{svg-jar "close"}}<span class="hidden">Close</span></a>
|
||||
<button type="button" class="close" title="Close" {{on "click" @close}}>{{svg-jar "close"}}<span class="hidden">Close</span></button>
|
||||
|
||||
<div class="modal-body">
|
||||
<p>
|
||||
|
|
Loading…
Add table
Reference in a new issue