You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems that this.refresh() in onDataChange helper does not refresh the html form fields, though setting original values to new values.
Seems like the issue is in this part of module.js code:
// Update reactiveValue without tracking it.returnTracker.nonreactive(function(){// If the remote value is different from what's in initial data, set `newRemoteValue`.// Otherwise, leave it--the user's edits are still just as valid.if(!_.isEqual(component.value.get(),fieldValue)){component.newRemoteValue.set(fieldValue);// Allow for remote data changes to pass through without user action.// This is important for the experience of some components.if(component.passThroughData){component.refresh();}else{component.remoteValueChange.set(true);component.refresh();//only refreshes if add this line}}});
I've managed to get html input refresh by applying component.refresh() also in the else clause of if (component.passThroughData).
The text was updated successfully, but these errors were encountered:
The problem is newRemoteValue in Tracker.nonreactive call is set after the onDataChange's refresh call and reactive refresh never happens again after that. That is because Tracker.afterFlush somehow execures before newRemoteValues is set.
It seems that this.refresh() in onDataChange helper does not refresh the html form fields, though setting original values to new values.
Seems like the issue is in this part of module.js code:
I've managed to get html input refresh by applying component.refresh() also in the else clause of if (component.passThroughData).
The text was updated successfully, but these errors were encountered: