Skip to content

Commit 7c0a69a

Browse files
committed
fix event handling of close button
the click triggers before the change event. if that click event gets its default prevented, the change event will not occur.
1 parent bc79fca commit 7c0a69a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

app/assets/javascripts/recurring_select_dialog.js.erb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ class RecurringSelectDialog {
5252
}
5353

5454
outerCancel(event) {
55-
event.preventDefault()
5655
if (event.target.classList.contains("rs_dialog_holder")) {
5756
this.cancel();
5857
}
@@ -372,7 +371,7 @@ class RecurringSelectDialog {
372371
<div class='rs_dialog_holder'> \
373372
<div class='rs_dialog'> \
374373
<div class='rs_dialog_content'> \
375-
<h1>${this.config.texts["repeat"]} <a href='#' title='${this.config.texts["cancel"]}' alt='${this.config.texts["cancel"]}'></a> </h1> \
374+
<h1>${this.config.texts["repeat"]} <a href='javascript:void(0)' title='${this.config.texts["cancel"]}' alt='${this.config.texts["cancel"]}'></a> </h1> \
376375
<p class='frequency-select-wrapper'> \
377376
<label for='rs_frequency'>${this.config.texts["frequency"]}:</label> \
378377
<select data-wrapper-class='ui-recurring-select' id='rs_frequency' class='rs_frequency' name='rs_frequency'> \

0 commit comments

Comments
 (0)