Commit 2513bf95 authored by Kenneth Hawkins's avatar Kenneth Hawkins Committed by Marco Fernandes
Browse files

Issue #3324121: Guteberg Drupal Block editor always assume checkbox value is = 1

parent 8aed2309
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -67,7 +67,7 @@
            // If checked, replace array item. If not checked concat to values array.
            if (this.checked) {
              values = values.filter(v => v.name !== this.name);
              values = values.concat({name: this.name, value: 1});
              values = values.concat({name: this.name, value: this.value});
            }
            else {
              values = values.concat({name: this.name, value: 0});
+2 −2
Original line number Diff line number Diff line
@@ -71,7 +71,7 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
              values = values.filter(function (v) {
                return v.name !== _this.name;
              });
              values = values.concat({ name: this.name, value: 1 });
              values = values.concat({ name: this.name, value: this.value });
            } else {
              values = values.concat({ name: this.name, value: 0 });
            }