Skip to content

Commit

Permalink
AMP-3469: add .prevent to @OnClick for menu to prevent navigation with
Browse files Browse the repository at this point in the history
<a> tag.
  • Loading branch information
yingfeng-iu committed Dec 2, 2024
1 parent e6eb4a4 commit 8d76967
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/navigation/Sidebar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
>
<b-nav-item
:id="menu.url"
@click="routeTo(menu)"
@click.prevent="routeTo(menu)"
:class="{
'd-none': resolvePermissions(menu.permissionKey)
}"
Expand Down
2 changes: 1 addition & 1 deletion src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import router from "./router";
import { store } from "./store/amp-store";
// import { VuePlugin } from "vuera";
import VueFilterDateFormat from "@vuejs-community/vue-filter-date-format";
import {createBootstrap} from "bootstrap-vue-next/plugins";
import moment from "moment";
import {createBootstrap} from "bootstrap-vue-next/plugins";
import "bootstrap/dist/css/bootstrap.css";
import "bootstrap-vue-next/dist/bootstrap-vue-next.css";

Expand Down

0 comments on commit 8d76967

Please sign in to comment.