Skip to content
This repository was archived by the owner on Dec 16, 2019. It is now read-only.

Commit 9b2dbaf

Browse files
committed
Fixed: check mark appearing above option instead of next to option
1 parent ed502e3 commit 9b2dbaf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/angularjs-dropdown-multiselect.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@ directiveModule.directive('ngDropdownMultiselect', ['$filter', '$document', '$co
4747
template += '<a role="menuitem" class="option" tabindex="-1" ng-click="setSelectedItem(getPropertyForObject(option,settings.idProp))">';
4848

4949
if (checkboxes) {
50-
template += '<div class="checkbox"><label><input class="checkboxInput" type="checkbox" ng-click="checkboxClick($event, getPropertyForObject(option,settings.idProp))" ng-checked="isChecked(getPropertyForObject(option,settings.idProp))" /><div static-include="{{settings.template}}"></div></label></div></a>';
50+
template += '<div class="checkbox"><label><input class="checkboxInput" type="checkbox" ng-click="checkboxClick($event, getPropertyForObject(option,settings.idProp))" ng-checked="isChecked(getPropertyForObject(option,settings.idProp))" /> <span static-include="{{settings.template}}"></div></label></span></a>';
5151
} else {
52-
template += '<span data-ng-class="{\'glyphicon glyphicon-ok\': isChecked(getPropertyForObject(option,settings.idProp))}"></span><div static-include="{{settings.template}}"></div></a>';
52+
template += '<span data-ng-class="{\'glyphicon glyphicon-ok\': isChecked(getPropertyForObject(option,settings.idProp))}"> </span> <span static-include="{{settings.template}}"></span></a>';
5353
}
5454

5555
template += '</li>';

0 commit comments

Comments
 (0)