Our state of the art Gantt chart


Post by Qwerty »

I'm seeing an issue where nothing in the context menus Add section can be hidden on the first time the menu is opened. After the first time it works as expected

Steps to reproduce:

  • Add this code
        features : {
            taskContextMenu : {
                processItems({ taskRecord, items }) {
                  items.add.menu.items.addTaskAbove.hidden = true
                }
            }
        },
  • Open a context menu

It should hide addTaskAbove but you should see that the menu item is only hidden after the menu has been opened a second time. This was run in firefox on one of the demos if it makes a difference.


Post by alex.l »

Hi Qwerty,

Thanks for your report, looks like a bug, the ticket is here: https://github.com/bryntum/support/issues/1010

All best,
Alex

All the best,
Alex


Post by Qwerty »

Thanks alex, we'll track that issue from here on.


Post by Qwerty »

We are revisiting this, and can't reproduce the issue on our end anymore. Can you confirm?


Post by alex.l »

Thank you for the update! Working code now looks a bit different

        taskMenu : {
            processItems({ taskRecord, items }) {
                items.add.menu.addTaskAbove.hidden = true
            }
        }

And you're right, it is not reproducible anymore. I will close the ticket, thanks again!

All the best,
Alex


Post Reply