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.

Failed To open dropdown menu in navbar

See original GitHub issue

Failed To open dropdown menu in bootstrap navbar

Versions:

=> ElectronNET.CLI Version: 7.30.2.0 => .Net core 3.1 and node 13.11.0

Target:

Windows, Linux, Mac

details:

Hello I add a dropdown menu with bootstrap, when I test it in the browser it works normally, but when I open in the electronNET “browser” it just don’t work

the code is:

<nav class="navbar navbar-expand-lg navbar-light bg-light">
  <a class="navbar-brand" href="#">Navbar</a>
  <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
    <span class="navbar-toggler-icon"></span>
  </button>

  <div class="collapse navbar-collapse" id="navbarSupportedContent">
    <ul class="navbar-nav mr-auto">
      <li class="nav-item active">
        <a class="nav-link" href="#">Home <span class="sr-only">(current)</span></a>
      </li>
      <li class="nav-item">
        <a class="nav-link" href="#">Link</a>
      </li>
      <li class="nav-item dropdown">
        <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
          Dropdown
        </a>
        <div class="dropdown-menu" aria-labelledby="navbarDropdown">
          <a class="dropdown-item" href="#">Action</a>
          <a class="dropdown-item" href="#">Another action</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="#">Something else here</a>
        </div>
      </li>
      <li class="nav-item">
        <a class="nav-link disabled" href="#" tabindex="-1" aria-disabled="true">Disabled</a>
      </li>
    </ul>
    <form class="form-inline my-2 my-lg-0">
      <input class="form-control mr-sm-2" type="search" placeholder="Search" aria-label="Search">
      <button class="btn btn-outline-success my-2 my-sm-0" type="submit">Search</button>
    </form>
  </div>
</nav>

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
lmtr0commented, May 16, 2020

Thank you very much

1reaction
lmtr0commented, May 10, 2021

Oh, I didn’t thought about that. I totally makes sense, It would take from the root directly! thanks

Read more comments on GitHub >

github_iconTop Results From Across the Web

Bootstrap Dropdown menu is not working
I am having trouble getting my dropdowns to work. I can get the navbar to show up perfectly, but when I click on...
Read more >
Why is my navbar dropdown not working in Bootstrap?
Here are a few common issues and solutions: 1. Incorrect HTML structure: Ensure that your HTML code for the navbar dropdown is structured...
Read more >
Bootstrap 5 dropdown not working (SOLVED) - YouTube
Bootstrap 5 dropdown not working (SOLVED) ... Bootstrap 5 Navbar Toggle not Working ... Easiest Dropdown Hover Menu with HTML CSS Only.
Read more >
How To Create a Dropdown Navigation Bar
Dropdown Menu inside a Navigation Bar. Hover over the "Dropdown" link to ... Use any element to open the dropdown menu, e.g. a...
Read more >
Dropdowns · Bootstrap v5.1
Trigger dropdown menus at the right of the elements by adding .dropend to the parent element. Dropright.
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