-
-
Notifications
You must be signed in to change notification settings - Fork 528
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
[3.1.0] Third level menu items can't be clicked #16667
Comments
I think its related to #16613. Thanks for reporting it! I'll also test it in the next days … |
I've done some debugging, and it appears the function focus() is being called on a textNode "\n". Still looking a bit, but that's the "cause" of the error. |
So the actual cause of the links not working is that as soon as you click, it forces a focus out, and doesn't register the click. My gut would be to remove:
From the |
Just a summary, the error doesn't appear to be why the clicks aren't working. The error is caused by the function call "focus()" on a textNode. The clicks not working are because ExtJS is focusing out before registering the clicks. Once the focus out logic is removed, the clicks on sub elements work. Basically, these are two separate but related issues. |
This is a good workaround! I will rewrite this in the next few days. Explanation: When you open a submenu and tab through it, the submenu should close when you leave the last item. If the above code is removed, the subnav will not close when exiting via keyboard navigation. |
@jenswittmann i haven't tested, but you may be able to add a click event listener that nulls out that focusRestore logic. Just a theory. |
…#16667 - remove variables subNavOpen and _this - set focusRestoreEls from array to focusRestoreEl as object - remove the class from the submenu instead of using hide() - refactor to use requestAnimationFrame() instead of setTimeout()
@MaticSulc can you test, if this new JS file solves your problem? Replace @matdave and @jaygilmore i have a hotfix for this: #16671 @theboxer i also have removed the |
@jenswittmann doesn't fix it for me. I've tried clearing MODX and browser cache ... didn't work. Tested in Brave and Edge. |
Seems to work: https://modxcommunity.slack.com/archives/C042Q4YS7/p1735550458855799?thread_ts=1734942248.468539&cid=C042Q4YS7 |
Can confirm as already written on Slack, this fixes the problem. @jenswittmann |
Bug report
Summary
When clicking the third level menu items (under Toggle Language and Reports), the following error is thrown:
When hovering over the link, the proper URL seems to be present. This might be related to the case we updated using a custom manager theme, but I don't find that likely - since it has not fixed itself even by changing the theme to default and clearing all caches.
This is almost certainly related to #16530.
Step to reproduce
Observed behavior
An error, mentioned above is thrown.
Expected behavior
The proper page should be opened.
Environment
MODX 3.1.0
PHP 8.3.8
The text was updated successfully, but these errors were encountered: