Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SplitButton | Flag for hiding menu on default button click. #14395

Closed

Conversation

kkoripl
Copy link

@kkoripl kkoripl commented Dec 19, 2023

Continue on fix #13962 from #13983.

So right now, when someone would like to have same behaviour on default button as it was for the menu button, it was impossible due to hiding menu after event handling.

One can see that here: https://stackblitz.com/edit/8tkckf?file=src%2Fapp%2Fdemo%2Fsplit-button-basic-demo.html

After the change, with setting the new flag to true, the same behaviour on default and menu button will be possible.
Probably there can be a flag to have same behaviour for both buttons, but... with onClick still possible to be set, both setups would be against each other.

BEFORE:
default-behaviour-without-fix

AFTER:
default-behaviour-fix

Copy link

vercel bot commented Dec 19, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
primeng ⬜️ Ignored (Inspect) Visit Preview Dec 19, 2023 10:13am

@cetincakiroglu
Copy link
Contributor

cetincakiroglu commented Mar 22, 2024

Hi,

This feature is not necessary, splitbutton should only open the menu when clicking the menu trigger button. Otherwise, it would be the same as popup menu and splitbutton would be unnecessary. This behavior also can be done by utilizing popup feature of the menu component. Thanks a lot for the effort and support.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

splitButton: close dropdown when default button is clicked
2 participants