Try to fix widget bug in IE introduced in ebb1cc1be

This commit is contained in:
Raphael Michel
2020-06-18 12:33:26 +02:00
parent 016dd88e8b
commit 0d45706608

View File

@@ -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);