salesforce/lwc

Support arguments for FACE callbacks

nolanlawson opened this issue · 0 comments

Several of the FACE (Form Associated Custom Element) callbacks have function arguments:

  • formAssociatedCallback(form)
  • formDisabledCallback(disabled)
  • formStateRestoreCallback(state, mode)

However, currently, LWC ignores the arguments and just calls the function without any arguments:

if (isTrue(nativeLifecycleElementsToUpgradedByLWC.get(this))) {
callback(this);
}

We should support the arguments for these methods.