Encountering a peculiar bug while attempting to update a user's address. The address object consists of two observable fields:
stateProvince.name = ko.observable("");
stateProvince.code = ko.observable("");
When updating these values, the program execution seems ineffective:
stateProvince.name("New York");
stateProvince.code("NY");
The code doesn't actually change the value of the state code. There are no exceptions thrown, and even changing it directly in dev tools doesn't work. Strangely, updating the name field works fine. What could be causing this knockout observable to fail to update without any errors? Trying to extend an existing codebase but haven't found anything that distinguishes the two objects.