Skip to content

Commit fb7ebcd

Browse files
committed
fix(components): picking modal not closing after page refresh
1 parent 89224e8 commit fb7ebcd

File tree

1 file changed

+19
-21
lines changed

1 file changed

+19
-21
lines changed

packages/app-frontend/src/features/components/ComponentsInspector.vue

Lines changed: 19 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -177,29 +177,27 @@ export default defineComponent({
177177
</portal>
178178

179179
<portal to="root">
180-
<transition name="vue-ui-fade">
181-
<div
182-
v-if="pickingComponent"
183-
class="absolute inset-0 bg-white bg-opacity-75 dark:bg-black dark:bg-opacity-75 z-100 flex items-center justify-center"
184-
>
185-
<div class="flex flex-col items-center justify-center space-y-4 px-8 py-6 rounded-lg shadow-lg bg-white dark:bg-gray-900">
186-
<VueIcon
187-
icon="gps_fixed"
188-
class="w-8 h-8 text-green-500 animate-pulse"
189-
/>
190-
<div>
191-
Click on a component on the page to select it
192-
</div>
193-
<div>
194-
<VueButton
195-
@click="stopPickingComponent()"
196-
>
197-
Cancel
198-
</VueButton>
199-
</div>
180+
<div
181+
v-if="pickingComponent"
182+
class="absolute inset-0 bg-white bg-opacity-75 dark:bg-black dark:bg-opacity-75 z-100 flex items-center justify-center"
183+
>
184+
<div class="flex flex-col items-center justify-center space-y-4 px-8 py-6 rounded-lg shadow-lg bg-white dark:bg-gray-900">
185+
<VueIcon
186+
icon="gps_fixed"
187+
class="w-8 h-8 text-green-500 animate-pulse"
188+
/>
189+
<div>
190+
Click on a component on the page to select it
191+
</div>
192+
<div>
193+
<VueButton
194+
@click="stopPickingComponent()"
195+
>
196+
Cancel
197+
</VueButton>
200198
</div>
201199
</div>
202-
</transition>
200+
</div>
203201
</portal>
204202
</div>
205203
</template>

0 commit comments

Comments
 (0)