Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
I'm using a save bar in my application. When I change the radio button, the save bar appears. However, if I return to the default radio button, the save bar doesn't disappear. It should return to normal.
<form data-save-bar onSubmit={handleSave} onReset={handleDiscard}>
<FormLayout>
<InlineGrid gap="400" columns={['twoThirds', 'oneThird']}>
<Text>Select zipcode widget appearance on frontend</Text>
<InlineStack gap="100" wrap={false}>
<div style={{ marginRight: '20px' }}>
<RadioButton
label="Inline Form"
id="inlineform"
name="button_appearance"
onChange={() => handleWidgetAppearanceChange('inline_form')}
value='inline_form'
checked={button_appearance == 'inline_form'}
/>
</div>
<div>
<RadioButton
label="Popup"
id="popup"
name="button_appearance"
onChange={() => handleWidgetAppearanceChange('modal_popup')}
value='modal_popup'
checked={button_appearance == 'modal_popup'}
/>
</div>
</InlineStack>
</InlineGrid>
</form>
Run into the same problem before. Would appreciate a response from Shopify.
2m ago Learn the essential skills to navigate the Shopify admin with confidence. T...
By Shopify Feb 12, 2025Learn how to expand your operations internationally with Shopify Academy’s learning path...
By Shopify Feb 4, 2025Hey Community, happy February! Looking back to January, we kicked off the year with 8....
By JasonH Feb 3, 2025