mt-ag / apex-fancytree-plugin

A region plug-in for Oracle APEX that displays data in a tree structure
MIT License
7 stars 4 forks source link

Navigation bar menus not expanding #11

Open Gwen42 opened 6 years ago

Gwen42 commented 6 years ago

I included a simple fancytree region (with the example query). If you try to click on a list item in the navigation bar, which itself contains a list of other items, nothing happens. Usually, the list should expand.

fancytree_menu

Have a look at the console error:

fancytree_menu_error

I noticed that when trying to include the drag 'n' drop functionality in my own fancytree plugin. It must have something to do with including jquery-ui (might be a version or order issue). Maybe you can find a way to fix that?

Kind regards

mt-ag commented 6 years ago

Hey Gwen, when exactly does this error occur? In your picture it shows that the root node is expanded, which means it happens correctly at least once. If you want to use drag'n'drop, you don't have to include any file yourself. You simply have to toggle an attribute from the plug-in.

Gwen42 commented 6 years ago

Hi, the tree itself works correctly :) - it's the menu in the navigation bar that's the problem.

Have a look at the screenshot: if I click on 'Menu', usually the menu opens - in my case it contains the logout feature. But as soon as I put a fancytree region on the page, it's broken: when I click on 'Menu' on this page, nothing happens, the menu is not expanded.

navigation_bar_menu

I didn't modify your plugin at all. Just some background info: I started my own version of a plugin for the fancytree before you published yours. Today, I wanted to include the dnd extension to my plugin and noticed the problem. If I do not include jquery-ui, the menu is working (but dnd isn't.) For clarification: that's just how I noticed the error, it occurs with your plugin as well.

mt-ag commented 6 years ago

That seems to be an oddly specific error... In my plug-in, I use jQuery UI v1.12.1. Have you tried any other versions? Unfortunately, I don't have the time to look into this issue right now due to other projects, otherwise I would look for a solution myself.

Gwen42 commented 6 years ago

I tried with 1.11.4 - no difference. Well, I thought there are probably more people using a navigation bar with lists, so we could all benefit from a solution. Sad to hear that you're busy with other projects. If I come across a solution, I will update you.

shaunmauer commented 6 years ago

@Gwen42 Can you replicate it on apex.oracle.com? If @mt-ag doesnt mind, I can look and see if I can see anything.

Gwen42 commented 6 years ago

Yes, you can try out here: https://apex.oracle.com/pls/apex/f?p=120518 with demo/demo (workspace name: print_workspace) Feel free to play around. Thanks @shaunmauer

Gwen42 commented 6 years ago

Hey, someone fixed it! I see the javascript file import is changed to a custom jquery-ui download. @mt-ag you can decide what to do with this issue but I guess you could adopt that fix. Thanks to the problem solver! 👍

Gwen42 commented 6 years ago

Small clarification: it suffices to remove the Widget Menu from the included jQuery-UI, i.e. widgets/menu with depending components widgets/autocomplete and widgets/selectmenu. All other components are not harmful to the navigation bar menu.

Andr700203 commented 6 years ago

Hi, I have the same problem. Tell me, what should I do to solve it? I have Apex 5.1.4

Andr700203 commented 6 years ago

At custom jquery-ui get a transparent context menu and it does not work default

Andr700203 commented 6 years ago

Hi, changed password for ws to demodemo