From 0d457066084de181e52914f2521254c1cbe6747b Mon Sep 17 00:00:00 2001 From: Raphael Michel Date: Thu, 18 Jun 2020 12:33:26 +0200 Subject: [PATCH] Try to fix widget bug in IE introduced in ebb1cc1be --- src/pretix/static/pretixpresale/js/widget/widget.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pretix/static/pretixpresale/js/widget/widget.js b/src/pretix/static/pretixpresale/js/widget/widget.js index b7ca37481..483d9e869 100644 --- a/src/pretix/static/pretixpresale/js/widget/widget.js +++ b/src/pretix/static/pretixpresale/js/widget/widget.js @@ -225,10 +225,10 @@ Vue.component('availbox', { }, computed: { amount_selected: { - get() { + get: function () { return this.item.has_variations ? this.variation.amount_selected : this.item.amount_selected }, - set(value) { + set: function (value) { // Unary operator to force boolean to integer conversion, as the HTML form submission // needs the value to be integer for all products. value = (+value);