Closed eduardomozart closed 6 months ago
Could you give me simple test pages so that I can confirm it on my computer?
I modified it to call preventDefault() in the TOC click handler. Could you try?
The problem seems to continue, as can be seen below: Here's the files to reproduce the issue: 3cx.zip
Thanks, but I couldn't re-produce the situation.
When I click "4.Phones", the triangular icon on left of the TOC disappears.
Since I'm not familiar with IndexMenu, I don't know how to make it work.
:sidebar
(https://wiki.example.com/doku.php?id=sidebar) page with the following content:** Ferramentas do Wiki **
* [[this>doku.php?id=start|Página principal]]
* [[this>doku.php?id=wiki:plugin:addnewpage:newpage|Criar página]]
** Barra de Navegação **
{{indexmenu>..:#1|js#awesome navbar nsort nogroup treenew}}
:3cx:phones
namespace (https://wiki.example.com/doku.php?id=3cx:phones).Hi, I tried but no luck.
I went to :3cx:phones, but "4. Phone Provisioning" didn't appear even though I clicked "+Add Phone".
Seems like IndexMenu is not fetching its children.
I'll learn the IndexMenu more so give me some more time.
I found out how to fetch children. I added max options in IndexMenu options.
{{indexmenu>..:#1|js#awesome navbar nsort nogroup treenew max#2}}
I confirmed your issue and I'll work on it.
I fixed and committed. Could you try?
Hello, thank you! It seems to be working as expected now!
When I expand the sidebar through the expander, it works as expected.
But when clicking on subtopics of the page, it also expands the sidebar ("SNMP" subns is shown). I believe those kind of events on TOC should be intercepted and a "preventDefault" clause be added to avoid those kind of issues when clicking on TOC. I believe it happens as TOC is embedded on FancyTree (IndexMenu JS TreeNew) so it triggers the expand event when clicked. It didn't seem to happen before the fixes applied this weekend.