Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Y
yii2bootstrap
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
夏彬
yii2bootstrap
Commits
e7b4df43
Commit
e7b4df43
authored
Dec 10, 2015
by
Agiel Kurniawan Saputra
Committed by
Alexander Makarov
Dec 11, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes #98: Fixed `yii\bootstrap\ButtonDropdown` setting `href` attribute for non `a` tags
parent
3b792412
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
ButtonDropdown.php
ButtonDropdown.php
+1
-1
CHANGELOG.md
CHANGELOG.md
+1
-1
No files found.
ButtonDropdown.php
View file @
e7b4df43
...
...
@@ -113,7 +113,7 @@ class ButtonDropdown extends Widget
}
else
{
$label
.=
' <span class="caret"></span>'
;
$options
=
$this
->
options
;
if
(
!
isset
(
$options
[
'href'
]))
{
if
(
!
isset
(
$options
[
'href'
])
&&
$this
->
tagName
===
'a'
)
{
$options
[
'href'
]
=
'#'
;
}
Html
::
addCssClass
(
$options
,
[
'toggle'
=>
'dropdown-toggle'
]);
...
...
CHANGELOG.md
View file @
e7b4df43
...
...
@@ -4,7 +4,7 @@ Yii Framework 2 bootstrap extension Change Log
2.
0.6 under development
-----------------------
-
Bug #98: Fixed
`yii\bootstrap\ButtonDropdown`
setting
`href`
attribute for non
`a`
tags (13nightevil)
2.
0.5 September 23, 2015
------------------------
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment