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.

Submenu actions not working in Chromium Browsers

See original GitHub issue

Describe the bug If an action is assigned to a button in an submenu, this action is not called, when the button is clicked.

To Reproduce Steps to reproduce the behavior:

  1. Define a submenu, for example:
{
  name: 'FileMenu',
  className: 'ma ma-file',
  title: 'File',
  children: [
    {
      name: 'Save',
      action: saveFile,
      className: 'ma ma-save',
      title: 'Save'
    },
    {
      name: 'New',
      action: newFile,
      className: 'ma ma-new',
      title: 'New'
    }
  ]
},...
  1. Define a function newFile, for example:
function newFile() {
  console.log("test");
}
  1. Load the example and click on File > New
  2. Check the browser console
  3. No output on console is shown in Google Chrome, Chromium, Edge or similar browser. It is working however in Firefox.

Expected behavior In Broser console the output “test”

** Version information **

  • OS: Windows 10
  • Browser: Chrome 95, Chromium 95, Edge 95
  • EasyMDE version: 2.15.0

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:22 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
halanikkolacommented, Nov 18, 2021

@lonaru The dropdown buttons .easymde-dropdown has an i element inside for the icon. The i needs a tabIndex attribute (I guess value -1) and some styles to remove the blue focus ring from the icon. After this, the :focus-within pseudo-selector seems to work on Safari too.

1reaction
Ionarucommented, Oct 27, 2021

Please confirm this is fixed in version 2.15.1-10.0.

I’ll deploy 2.16.0 once we know for sure this has solved the issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

713746 - Dropdown menus not working - chromium - Monorail
Drop down menus open automatically when hovering over them. Clicking on menu items is like clicking on that what is under the popup...
Read more >
Submenu not accessible in Chrome | WordPress.org
It seems, the current version has a small bug in the stylesheet. Chrome: Submenu shows on hover, but is hidden when I try...
Read more >
Problem with navigation submenu in Windows browsers
I'm seeing a problem in navigation menu behavior when a submenu is present. The problem has been reported in Windows but doesn't appear...
Read more >
CSS Dropdown menu issues in chrome - Stack Overflow
I am working on a wordpress theme using bootstrap. The theme has a top navigation bar with menus and sub-menus. But for some...
Read more >
Sub-Menu options can't be selected in Chrome · Issue #406 · oracle ...
Hi, In Chrome, navigating to the hamburger menu > Export > Terraform the "Local Zip" and "Git" options appear detached from the menu...
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