-
Notifications
You must be signed in to change notification settings - Fork 9
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
Unexpected value for attribute "discardconfirmation" on <ui-save-bar> #321
Comments
I'm experiencing the same issue.
|
Hi, I am looking into this. In the meantime, you can do |
Note that: this is an issue with React for custom element. There is nothing we can do about it. See facebook/react#9230 Set empty string as my suggestion above is the workaround until React fixes it.
|
thanks for the update! what about leave Confirmation modal, can we remove it programmatically, since there is a bug now - #313 |
There is no way to clear it manually. I am looking into the #313 now. See you over there I guess. |
@henrytao-me (not sure how is currently done) but why not wrapping the actual web-component with a React component that takes the cleaner props and then pass it down to the web-component as needed? That way you can keep the api clean for the users (so we can just pass Just thinking on the app-brige-react as an API that connects to the actual web-component but through standard React syntax/practices |
Describe the bug
Using both the new react component,
SaveBar
and the web componentui-save-bar
, I tried to introduce thediscardConfirmation
prop to them but was faced with the following error:To Reproduce
Steps to reproduce the behaviour:
Add the
<SaveBar id='save-bar' discardConfirmation></SaveBar>
component as the last component of a app-bridge-react modalExpected behaviour
There should not be any error.
Contextual information
Packages and versions
List the relevant packages you’re using, and their versions. For example:
@shopify/app-bridge
@3.7.10
@shopify/app-bridge-react
@4.1.1
@shopify/polaris
@12.12.1
@shopify/app-bridge-types
@0.0.9
Platform
Additional context
The app uses NextJs 14.1.0.
The text was updated successfully, but these errors were encountered: