should be possible to open dropdown menu when click on the default button???
thanks in advance.
An regular button which triggers an overlay panel with a dropdown inside seems more intuitive to me.
If you wanted to do it the way described I think it would work to get a ref to the component and catch the command button being clicked via "onClick" and then use the ref to the component to manually call "show" which will show the dropdown.
Please use forum for questions and help requests.
I think the original request is a perfectly valid issue. I am surprised triggering the SplitButton's dropdown with a click on the "main button" is not supported.
I think the issue is poorly worded which lead to it being closed. I can see how it looked like a help request. You can always open a new issue and reference this one or PR it yourself if you would like.
fyi I workaround this by doing something like:
<p-splitButton #ua label="foo" (onClick)="ua.onDropdownButtonClick(null)" [model]="actions"></p-splitButton>
Most helpful comment
fyi I workaround this by doing something like: