Skip to content

Commit 0ebfc9c

Browse files
Fix disabled SEO fields (again!) (#496)
1 parent 762137c commit 0ebfc9c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

resources/js/components/fieldtypes/SeoProFieldtype.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const { originValues } = injectPublishContext();
1212
1313
const readOnly = computed(() => {
1414
// When localizing an entry AND "localizable" is disabled, make the fields read-only.
15-
if (originValues !== null && !props.config.localizable) {
15+
if (originValues?.length > 0 && !props.config.localizable) {
1616
return true;
1717
}
1818
@@ -21,7 +21,7 @@ const readOnly = computed(() => {
2121
</script>
2222
2323
<template>
24-
<div>
24+
<div :class="{ 'opacity-50': readOnly }">
2525
<FieldsProvider
2626
:fields="meta.fields"
2727
:read-only="readOnly"

0 commit comments

Comments
 (0)