Skip to content

Commit

Permalink
[6.x] Fix OneOrManySites component and the Radio fieldtype (#11513)
Browse files Browse the repository at this point in the history
  • Loading branch information
duncanmcclean authored Feb 28, 2025
1 parent d255f5f commit 2b04073
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions resources/js/components/collections/OneOrManySitesField.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<radio-fieldtype
:handle="`${handle}_mode`"
:value="mode"
@input="setMode"
@update:value="setMode"
:config="{
inline: true,
options: {
Expand All @@ -29,8 +29,8 @@
<text-input
dir="ltr"
class="slug-field"
:value="value[site.handle]"
@input="updateSiteValue(site.handle, $event)"
:model-value="value[site.handle]"
@update:model-value="updateSiteValue(site.handle, $event)"
/>
</td>
</tr>
Expand All @@ -39,7 +39,7 @@
</div>

<div v-if="!hasMultipleSites || !inMultipleMode">
<text-input :value="value" @input="update" class="slug-field" dir="ltr" />
<text-input :model-value="value" @update:model-value="update" class="slug-field" dir="ltr" />
</div>
</div>
</template>
Expand Down Expand Up @@ -106,7 +106,7 @@ export default {
},
update(value) {
this.$emit('input', value);
this.$emit('update:value', value);
},
},
};
Expand Down
2 changes: 1 addition & 1 deletion resources/js/components/collections/Routes.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
:handle="handle"
:value="value"
:store="store"
@input="update"
@update:value="update"
:column-header="__('Route')"
></one-or-many-sites-field>
</template>
Expand Down
2 changes: 1 addition & 1 deletion resources/js/components/collections/TitleFormats.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
:handle="handle"
:value="value"
:store="store"
@input="update"
@update:value="update"
:column-header="__('Format')"
></one-or-many-sites-field>
</template>
Expand Down
2 changes: 1 addition & 1 deletion resources/js/components/publish/SaveButtonOptions.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
handle="save_and_continue_options"
:config="options"
:value="currentOption"
@input="currentOption = $event"
@update:value="currentOption = $event"
/>
</div>
</div>
Expand Down

0 comments on commit 2b04073

Please sign in to comment.