Modified attemptChange to update state.oldValues even when the newValue
is the same as the old value.