Here is a repo that reproduces this problem: https://github.com/Hazzed5/gojs-inspector-example
Text present in the node is a subproperty and is bound by this function:
const makeTwoWaySubBinding = (
targetname,
sourcename,
conversion?,
backconversion?
) => {
const bind = new go.Binding(targetname, "message");
bind.mode = go.Binding.TwoWay;
bind.converter = (message, target) => {
const value = message[sourcename];
if (value === undefined) return target[targetname];
return typeof conversion === "function"
? conversion(value, target)
: value;
};
bind.backConverter = (value, data, model) => {
const message = data.message;
if (model)
model.setDataProperty(
message,
sourcename,
typeof backconversion === "function"
? backconversion(value, message, model)
: value
);
else
message[sourcename] =
typeof backconversion === "function"
? backconversion(value, message, model)
: value;
return message;
};
return bind;
};
Maybe that’s the issue?