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
The documentation says the <AppProxyForm/> component can be used in place of Remix's <Form/> but it does not correctly handle setting the ref attribute.
Expected behavior
What do you think should happen?
Accept the ref attribute and enable calling form functions such as form.current.submit().
Actual behavior
What actually happens?
Type '{ children: Element; ref: RefObject; method: "POST"; onSubmit: (ev: FormEvent) => void; onReset: () => void; }' is not assignable to type 'IntrinsicAttributes & AppProxyFormProps'.
Property 'ref' does not exist on type 'IntrinsicAttributes & AppProxyFormProps'.ts(2322)
The component does not use forwardRef as it should.
Thanks for flagging, and taking a detailed look into the problem.
If you would like to feel free to put up a PR for this issue, and the team will prioritize reviewing it. Otherwise I will add this ticket to the backlog of work for us to resolve.
We're labeling this issue as stale because there hasn't been any activity on it for 60 days. While the issue will stay open and we hope to resolve it, this helps us prioritize community requests.
You can add a comment to remove the label if it's still relevant, and we can re-evaluate it.
Issue summary
Before opening this issue, I have:
@shopify/shopify-app-remix
package and version: 3.3.2{ logger: { level: LogSeverity.Debug } }
in my configuration, when applicableThe documentation says the
<AppProxyForm/>
component can be used in place of Remix's<Form/>
but it does not correctly handle setting theref
attribute.Expected behavior
What do you think should happen?
Accept the
ref
attribute and enable calling form functions such asform.current.submit()
.Actual behavior
What actually happens?
The component does not use
forwardRef
as it should.shopify-app-js/packages/apps/shopify-app-remix/src/react/components/AppProxyForm/AppProxyForm.tsx
Lines 63 to 79 in 08627d8
Line 63 should be:
Line 75 should be:
Steps to reproduce the problem
Debug logs
N/A
The text was updated successfully, but these errors were encountered: