From 6a05342f0808bc7650cc7bc643cac0e8118955a0 Mon Sep 17 00:00:00 2001 From: Dmitry Sharabin Date: Sun, 11 Feb 2024 11:52:31 +0100 Subject: [PATCH] Update edit type for implicit booleans, fixes #737 (#1017) --- src/primitive.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/primitive.js b/src/primitive.js index 93a39f0d..fc660383 100644 --- a/src/primitive.js +++ b/src/primitive.js @@ -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");