-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
onAction
Not being fired when part of primaryActions or secondaryActions on a Page
#316
Comments
@tedsczelecki I opened a similar issue (issue #315). Glad to hear it's not just me. 😄 Are you seeing it in Chrome or iOS? I'm only experiencing it in the Shopify iOS app, works fine in Chrome for me. |
@mbaumbach Yeah I noticed that before submitting mine but thought I'd put another issue in there in case it wasn't related! |
@tedsczelecki The code isn't all that different, to be honest. I did the same tests as you with
The other thing I seemed to notice was when using All of my actions seem to work fine on Chrome/Firefox for me though. Since I can't reproduce in on the web, I don't have a lot of insight as to what's going on. You might try adding a debug={true} prop to your |
wow... Added debug to the
Thanks a bunch for your help and I hope this solves it for you as well |
Unfortunately it doesn't (I'm not including an extra slash). Glad it's working for you now though! |
Issue summary
When trying to customize the Bar buttons and get the click event within my component nothing happens. The same outcome happened in
v1.14.1
with theEmbeddedApp
andv2.0.0
withAppProvider
. I also tried usinglink
and it works correctly.My react components and the buttons both render, but the
onAction
is never firedExpected behavior
onAction
should be called andHello
should appear in the consoleActual behavior
Nothing appears in the console
Steps to reproduce the problem
This is the initial render with
AppProvider
and this is the page I am trying to render
Specifications
⚓️ We’re not accepting pull requests at this time
🗒 This repo is for reporting issues and feature requests only
The text was updated successfully, but these errors were encountered: