-
-
Notifications
You must be signed in to change notification settings - Fork 6.9k
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
yii\bootstrap\ButtonDropdown splitButton gets same options as primary button #6720
Comments
Any ideas on how to solve it? |
I've currently overruled the |
Issue moved to yiisoft/yii2-bootstrap#108 |
You can simply change on your code and resolved this issue.
you can change in above code, in "ELSE" part only and solved "splitButton" option issue.
Here issue is that 'data-toggle' option want to add before "html" and need to unset "$options['id']" after html is ready. |
When rendering with 'split'=>true, the dropdown-toggle is rendered with a second button. This button gets the same options as the primary buttons.
This is getting problematic when you try and set options for JavaScript usage like 'id' and 'onclick'.
The text was updated successfully, but these errors were encountered: