After node-red upgraded to the latest v3.1.10 version, typedInput custom node prompts an error, and double clicking on the node doesn't open the node configuration interface, does anyone know how to solve this problem? Thanks in advance!
Related configuration code:
RED.nodes.registerType("current-state-switch", {
...
statusData: {
value: "",
required: true,
validate: RED.validators.typedInput("statusDataType"),
},
statusDataType: {
value: "str",
},
// validate: {
// statusData: RED.validators.typedInput("statusDataType"),
// },
},
...
oneditprepare: function () {
$("#node-input-statusData").typedInput({
default: "str",
typeField: $("#node-input-statusDataType"),
types: ["str", "num", "bool"],
});
},
});
...
<div class="form-row">
...
<div
class="red-ui-typedInput-container"
>
<input
type="text"
id="node-input-statusData"
placeholder="Status Data"
/>
</div>
<input
type="hidden"
id="node-input-statusDataType"
style="display: none;"
/>
</div>