-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Option to disable main SplitButton Item #7721
Comments
Did you come up with any workarounds for this? |
work around I found is to change the order of the items, disabled items are last |
I would like it so that if the sub item array is empty then the split icon is disabled, as in my case I dont know how many sub items there will be at runtime. |
Hi @urielTwito, HTML SCSS: It works fine for me! |
It worked with me to use a separate button and a menu button next to each others. That way I can control disabling the main button or items button.
|
Hi, So sorry for the delayed response! Improvements have been made to many components recently, both in terms of performance and enhancement. Therefore, this improvement may have been developed in another issue ticket without realizing it. You can check this in the documentation. If there is no improvement on this, can you reopen the issue so we can include it in our roadmap? Best Regards, |
@mertsincan this is still not resolved, if you can please reopen this one. |
I'm submitting a ... (check one with "x")
Current behavior
when using split-button there is a difference between the first item and all others
there is a main action and other actions.
I can disable any sub item (items in the drop down)
But I cannot disable the main item.
if i set disable to true, it will disable the whole control, I need to disable only the first option and not the drop down
Expected behavior
option to disable only the "main" action
** I think the code fix is easy **
just remove the disabled option from the main div and from the drop down button, and it will work.
The text was updated successfully, but these errors were encountered: