Save Bar Issue

Save Bar Issue

jigneshD
Shopify Partner
2 0 1

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>

Reply 1 (1)

mehmettekn
Shopify Partner
10 0 3

Run into the same problem before. Would appreciate a response from Shopify.