Skip to content

Commit e357e8a

Browse files
committed
add list empty text when non addable & empty
1 parent ca9c12c commit e357e8a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • resources/js/form/components/fields

resources/js/form/components/fields/List.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@
329329
</div>
330330
</template>
331331

332-
<template v-if="field.readOnly && !value?.length">
332+
<template v-if="!canAddItem && !value?.length">
333333
<div class="text-muted-foreground text-sm">
334334
{{ __('sharp::form.list.empty') }}
335335
</div>

0 commit comments

Comments
 (0)