Skip to content

Commit cfc06f8

Browse files
committed
fix(vue): redo faulty fallback fix
1 parent 42ebfd0 commit cfc06f8

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

packages/components-vue/src/components/form/Input.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@
122122
<FormInputNValues
123123
v-else-if="input.type === eFT.PHONE || input.type === eFT.CELLPHONE"
124124
v-bind="{ loading, errors, refresh }"
125+
:key="indicativesArr.length"
125126
:content="!!indicativesArr.length"
126127
:model="models[i].value"
127128
:values="[2]"
@@ -150,6 +151,7 @@
150151
v-else-if="input.type === eFT.LOCATION"
151152
v-slot="{ statesReq, citiesReq }"
152153
v-bind="{ theme, states, countries, loading, errors, refresh }"
154+
:key="`${defaultCountry}-${countriesArr.length}-${statesArr?.length}`"
153155
:model="models[i].value"
154156
>
155157
<SelectFilter

packages/components-vue/src/components/loader/ContentFetch.vue

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<BaseErrorBoundary :theme="theme">
33
<LoaderContent
44
v-bind="{
5-
content: !!content && patchedIsContent(content) && firstLoad,
5+
content: !!content && patchedIsContent(content) && (!!fallback || firstLoad),
66
errors,
77
loading,
88
refresh,
@@ -17,7 +17,7 @@
1717
:class="$attrs.class"
1818
>
1919
<slot
20-
v-if="!!content && patchedIsContent(content) && firstLoad"
20+
v-if="!!content && patchedIsContent(content) && (!!fallback || firstLoad)"
2121
v-bind="{ content, refresh, loading, errors }"
2222
></slot>
2323
</LoaderContent>
@@ -146,7 +146,6 @@
146146
let newData: T | null = null;
147147
148148
try {
149-
if (props.fallback) firstLoad.value = true; // use fallback while the real content loads
150149
if (!props.promise && !props.hydratablePromise && !props.url) return null;
151150
if (props.preventAutoload) {
152151
// is promise like

0 commit comments

Comments
 (0)