Hey,
After wanting to try the new Beta version of Wappler and noticing this was still an issue, I did some digging and I think I’ve found a solution.
I could see a lot of (re)work had been done to App Connect between v1.12.3 and v1.14.1 (Stable) so I compared the files looking for differences in the form-element portion.
I noticed the render function in v1.14.1 ended with this.updateData()
render: function(t) {
dmx.BaseComponent.prototype.render.call(this, t), this.$node.value = this.props.value || "", this.$node.disabled = this.props.disabled, this.$node.defaultValue = this.props.value || "", this.$node.addEventListener("input", this.updateData.bind(this)), this.$node.addEventListener("change", this.updateData.bind(this)), this.$node.addEventListener("invalid", this.updateData.bind(this)), this.$node.addEventListener("focus", this.updateData.bind(this)), this.$node.addEventListener("blur", this.updateData.bind(this)), this.updateData()
},
Whereas v1.12.3 ends without this.updateData() and instead ends with this.set(“value”, this.props.value || “”), this.set(“disabled”, this.props.disabled)
render: function(t) {
dmx.BaseComponent.prototype.render.call(this, t), this.$node.value = this.props.value || "", this.$node.disabled = this.props.disabled, this.$node.defaultValue = this.props.value || "", this.$node.addEventListener("input", this.updateData.bind(this)), this.$node.addEventListener("change", this.updateData.bind(this)), this.$node.addEventListener("invalid", this.updateData.bind(this)), this.$node.addEventListener("focus", this.updateData.bind(this)), this.$node.addEventListener("blur", this.updateData.bind(this)), this.set("value", this.props.value || ""), this.set("disabled", this.props.disabled)
},
After replacing this.updateData() with this.set(“value”, this.props.value || “”), this.set(“disabled”, this.props.disabled) in the v1.14.1 dmxAppConnect.js the issue seems to have been fixed.
I’m not sure if removing this.updateData() will affect anything else further down the line, but the team can hopefully push a proper fix for this with the above information.
Thanks. 