0
0
Fork 0

Solucion a comentarios 16

This commit is contained in:
carlosfonseca 2024-02-20 19:02:42 -05:00
parent a0d75e5b02
commit d06271b91d
1 changed files with 2 additions and 1 deletions

View File

@ -70,6 +70,7 @@ defineExpose({
const componentIsRendered = ref(false);
onMounted(async () => {
originalData.value = $props.formInitialData;
nextTick(() => {
componentIsRendered.value = true;
});
@ -98,7 +99,7 @@ const isLoading = ref(false);
// Si elegimos observar los cambios del form significa que inicialmente las actions estaran deshabilitadas
const isResetting = ref(false);
const hasChanges = ref(!$props.observeFormChanges);
const originalData = ref({ ...$props.formInitialData });
const originalData = ref({});
const formData = computed(() => state.get($props.model));
const formUrl = computed(() => $props.url);