Skip to content

Commit

Permalink
Update edit type for implicit booleans, fixes #737 (#1017)
Browse files Browse the repository at this point in the history
  • Loading branch information
DmitrySharabin authored Feb 11, 2024
1 parent d68e709 commit 6a05342
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/primitive.js
Original file line number Diff line number Diff line change
Expand Up @@ -1246,6 +1246,7 @@ $.Class(_, {
if (value !== this._datatype) {
if (value == "boolean" && !this.attribute) {
this.attribute = Mavo.Elements.defaultConfig.boolean.attribute;
this.updateEditType();
}

$.toggleAttribute(this.element, "datatype", value, value && value !== "string");
Expand Down

0 comments on commit 6a05342

Please sign in to comment.