Closed BaggioGiacomo closed 1 year ago
Did you manage to solve the problem?
I dispatch a change event on the Form onChange:
onChange={(event) => {
const checkbox = event.target as HTMLInputElement;
const checkboxId = checkbox.id;
checkbox.dispatchEvent(new Event("change", { bubbles: true }));
}}
I dispatch a change event on the Form onChange:
onChange={(event) => { const checkbox = event.target as HTMLInputElement; const checkboxId = checkbox.id; checkbox.dispatchEvent(new Event("change", { bubbles: true })); }}
Thank you for your response I've also resolved the issue in the same manner =)
Describe the bug
I want to remove the
@shopify/app-bridge-react
package since it will be removed soon. While refactoring, I got blocked on the contextual save bar.Contextual information
This is my code:
This is how I refactored:
EditableMetafieldDefinitionsList
andAvailableMetafieldDefinitionsList
are drag and drop lists made usingreact-beautiful-dnd
package. This is their code (I put just one code snippet since they are very similar):ListItem
is just a component with some divs and stylingI've tried to make a simple test to check if the problem was the library. The contextual bar appears if I create a simple form (so I'm sure that it has to work):
Packages and versions
List the relevant packages you’re using, and their versions. For example:
Platform
Additional context
I'm using the Rails shopify app template