-
-
Notifications
You must be signed in to change notification settings - Fork 193
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 #108
Labels
type:enhancement
Enhancement
Comments
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. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This issue has originally been reported by @ASlatius at yiisoft/yii2#6720.
Moved here by @cebe.
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: