Skip to content

Commit 1e4d11c

Browse files
committed
Close modals when clicking off them
Closes #3652
1 parent 8e17efe commit 1e4d11c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

core/client/templates/components/gh-modal-dialog.hbs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
<div id="modal-container" {{action bubbles=false preventDefault=false}}>
2-
<article {{bind-attr class="klass :js-modal"}}>
3-
<section class="modal-content">
1+
<div id="modal-container" {{action "closeModal"}}>
2+
<article {{bind-attr class="klass :js-modal"}}>
3+
<section class="modal-content" {{action bubbles=false preventDefault=false}}>
44
{{#if title}}<header class="modal-header"><h1>{{title}}</h1></header>{{/if}}
55
{{#if showClose}}<a class="close" href="" title="Close" {{action "closeModal"}}><span class="hidden">Close</span></a>{{/if}}
66
<section class="modal-body">
@@ -19,4 +19,4 @@
1919
</section>
2020
</article>
2121
</div>
22-
<div class="modal-background fade" {{action "closeModal"}}></div>
22+
<div class="modal-background fade"></div>

0 commit comments

Comments
 (0)