question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to provide hover effects on `<b-nav-item>` mouseover?

See original GitHub issue

Hello friends, I have just begun using this project, thanks— I can hook into a nav-item’s @click attribute, but when attempting to receive events on hover, nothing happens.

<template>
  <b-nav vertical>
    <b-nav-item @mouseover="hello">Home</b-nav-item>
  </b-nav>
</template>

<script>
export default {
  methods: {
    hello() {
      debugger
    }
}
</script>
  1. Is this true for most of @bootstrap-vue components?
  2. Am I missing something?

Thanks.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:13 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
alexsasharegancommented, Jun 30, 2017

BTW, @tmorehouse, you might have a jQuery event you’re thinking of. hover is not a native DOM event. Use mouseover or mouseenter. You can check stack overflow for the differences between those events (I know I always get confused).

1reaction
alexsasharegancommented, Jun 30, 2017

So this is sort of a duplicate of https://github.com/bootstrap-vue/bootstrap-vue/issues/588. Check this issue for a pretty good description of using v-on with the .native modifier.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Beautiful navigation hover effects - CodePen
Beautiful navigation hover effects · Underline Stroke · Underline Fill · Circle Fill · Shift.
Read more >
Bootstrap 4 nav-link hover effect - css - Stack Overflow
The first place to start is add .nav-item { position: relative } . When you use position: absolute that element is positioned to...
Read more >
Adding a hover mode to your menu items - Beatriz Caraballo
In today's post, we'll be looking at how you can add three different types of subtle hover mode to your menu items with...
Read more >
Bootstrap navbar dropdown show on hover
It is better to create hover effect only for desktop screens. · Hide dropdown menu by adding display:none . · Add pseudo-class :hover...
Read more >
Activating nav bar items on hover - Material Design for Bootstrap
Hello, Does the navbar class come with any kind of hover effect? Just like the sidemenu of mdbootstrap website does - moving the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found