diff --git a/src/components/ui/VnNotes.vue b/src/components/ui/VnNotes.vue index 1663f6eb2..9b143aca2 100644 --- a/src/components/ui/VnNotes.vue +++ b/src/components/ui/VnNotes.vue @@ -19,9 +19,8 @@ import VnInput from 'components/common/VnInput.vue'; const emit = defineEmits(['onFetch']); const originalAttrs = useAttrs(); - const $attrs = computed(() => { - const { style, ...rest } = originalAttrs; + const { style, required, deletable, ...rest } = originalAttrs; return rest; }); @@ -149,7 +148,7 @@ function fetchData([data]) { v-model="newNote.observationTypeFk" option-label="description" style="flex: 0.15" - :required="Object.keys($attrs).includes('required')" + :required="Object.keys(originalAttrs).includes('required')" @keyup.enter.stop="insert" />