Trying the following:
Codepen/jsFiddle (required)
https://codesandbox.io/s/cfbwr?fontsize=14
Potential bug / problem:
If the button is in the default-header slot, then the menu WILL NOT display upon clicking the button
If, however, the button is in the default-body slot, then the menu WILL display.
To Reproduce
Expected behavior
Menu should display in default-header slot when drop down button is clicked. Just like it does when clicking on the drop down button in the default-body slot.
Hi,
Add a @click.stop to your QBtn (which has the menu) in the node header. Otherwise it messes up with QTree's own events.
Will research if there's a way to make this easier, but until then, this is the way.
Awesome. Works like a charm. Thanks!
Most helpful comment
Hi,
Add a
@click.stopto your QBtn (which has the menu) in the node header. Otherwise it messes up with QTree's own events.Will research if there's a way to make this easier, but until then, this is the way.