Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vue3: unmounted apps are still available in the app drown #1455

Closed
ChristianBirkl opened this issue May 27, 2021 · 1 comment
Closed

vue3: unmounted apps are still available in the app drown #1455

ChristianBirkl opened this issue May 27, 2021 · 1 comment

Comments

@ChristianBirkl
Copy link

Version

6.0.0-beta.11

Browser and OS info

Chrome 90 / Windows10

Steps to reproduce

create new vue app with the following component:

<template>
  <div id="compA"></div>
  <input type="button" @click="createApp" value=" app" />
  <input type="button" @click="deleteApp" value="-app" />
</template>

<script lang="ts">
import { defineComponent, createApp } from "vue";

import CompA from "./components/CompA.vue";

export default defineComponent({
  data() {
    return {
      subApp: null as any,
    };
  },
  methods: {
    createApp() {
      this.subApp = createApp(CompA);
      this.subApp.mount("#compA");
    },
    deleteApp() {
      this.subApp.unmount();
    },
  },
});
</script>

Steps:

  1. click +app
  2. click -app

What is expected?

App 2 not available in the app drop down

What is actually happening?

App 2 still available in the app drop down

@Akryum Akryum added the v6 label May 27, 2021
@Akryum
Copy link
Member

Akryum commented May 27, 2021

Oops

@Akryum Akryum closed this as completed in 3d5fb53 May 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants