Skip to content

Multiple modals not working #93

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

Closed
Lengo46 opened this issue Jul 6, 2021 · 1 comment
Closed

Multiple modals not working #93

Lengo46 opened this issue Jul 6, 2021 · 1 comment

Comments

@Lengo46
Copy link

Lengo46 commented Jul 6, 2021

I'm trying to implement logic for multiple modals, but it's only showing one modal (the first you clicked) in the app. I doesn't open the other modals available. If I press 1, it opens 1, but can't open 2 & 3, and vice versa. I've tried multiple angles, but I don't find out what's wrong.

Mixin

  navigateToBenchmark(args: EventData) {
    Vue.prototype.$navigator.modal("/1", { fullscreen: true })
  }

  navigateToDailyReward(args: EventData) {
    Vue.prototype.$navigator.modal("/2", { fullscreen: true })
  }

  navigateToChallengeUser(args: EventData) {
    Vue.prototype.$navigator.modal("/3", { fullscreen: true })
  }

Routes.ts


import Bechmark from "./views/modals/benchmark.vue"
import DailyReward from "./views/modals/dailyreward.vue"
import PChallenge from "./views/modals/challenge-user.vue"

export const routes = {
  "/tabsview": {
    component: Tabsview,
  },
  "/login": {
    component: Login,
  },
  "/reset": {
    component: Reset,
  },
  "/profile": {
    component: Profile,
  },
  "/signup": {
    component: Signup,
  },
  "/settings": {
    component: Settings,
  },
  "/1": {
    component: Bechmark,
  },
  "/2": {
    component: DailyReward,
  },
  "/3": {
    component: PChallenge,
  },
}
@Lengo46
Copy link
Author

Lengo46 commented Jul 7, 2021

I've found the problem. I was reloading the same mixins in the modals, which caused the issue.

@Lengo46 Lengo46 closed this as completed Jul 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant