Skip to content

Commit efa2dbc

Browse files
Make sure the right elements are being used for the booking wizard navigation
1 parent 3c1d49d commit efa2dbc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

assets/js/pages/booking.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ App.Pages.Booking = (function () {
323323
* Some special tasks might be performed, depending on the current wizard step.
324324
*/
325325
$('.button-next').on('click', (event) => {
326-
const $target = $(event.target);
326+
const $target = $(event.currentTarget);
327327

328328
// If we are on the first step and there is no provider selected do not continue with the next step.
329329
if ($target.attr('data-step_index') === '1' && !$selectProvider.val()) {
@@ -374,9 +374,9 @@ App.Pages.Booking = (function () {
374374
* book wizard.
375375
*/
376376
$('.button-back').on('click', (event) => {
377-
const prevTabIndex = parseInt($(event.target).attr('data-step_index')) - 1;
377+
const prevTabIndex = parseInt($(event.currentTarget).attr('data-step_index')) - 1;
378378

379-
$(event.target)
379+
$(event.currentTarget)
380380
.parents()
381381
.eq(1)
382382
.hide('fade', () => {

0 commit comments

Comments
 (0)