Skip to content

Commit 8dfffe7

Browse files
committed
fix: fix country save issue after changing two times and remove cancel button
1 parent 5e5f048 commit 8dfffe7

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

templates/v3/includes/_field_combo.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
this.query = '';
4646
this.activeIndex = -1;
4747
this.open = false;
48+
this.$dispatch('input');
4849
setTimeout(() => this.$refs.chevronBtn.focus());
4950
},
5051
toggle() {

templates/v3/user_profile_edit.html

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,7 @@
3131
<form method="post" action="{{ profile_account_edit_url }}" class="card__form" enctype="multipart/form-data" novalidate
3232
x-data="{...createSectionForm({{ saved_sections.v3_update_profile|yesno:'true,false' }}), ...profileForm()}"
3333
@submit="handleSubmit($event)"
34-
@input="saved = false" @change="saved = false"
35-
@reset="saved = {{ saved_sections.v3_update_profile|yesno:'true,false' }}">
34+
@input="saved = false" @change="saved = false">
3635
{% csrf_token %}
3736
<div class="card__header">
3837
<span class="card__title">Profile</span>
@@ -163,7 +162,6 @@
163162
a link validation/save failure blocks the section submit and the button stays "Save changes". {% endcomment %}
164163
<div class="card__cta_section">
165164
{% include 'v3/includes/_button.html' with style='primary' type='submit' name='v3_update_profile' label='Save changes' label_x_text="saved ? 'Changes Saved' : 'Save changes'" alpine_disabled='saved || saving' only %}
166-
{% include 'v3/includes/_button.html' with style='secondary' type='reset' label='Cancel' only %}
167165
<span class="field__error" x-show="saveError" x-text="saveError" x-cloak></span>
168166
</div>
169167
</form>

0 commit comments

Comments
 (0)