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

Commit deb44a1

Browse files
committed
Fix for closeOnBlur when element without className is clicked
Fixes dotansimha issue #117
1 parent 3a8f14a commit deb44a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/angularjs-dropdown-multiselect.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ directiveModule.directive('ngDropdownMultiselect', ['$filter', '$document', '$co
161161
var parentFound = false;
162162

163163
while (angular.isDefined(target) && target !== null && !parentFound) {
164-
if (contains(target.className.split(' '), 'multiselect-parent') && !parentFound) {
164+
if (!!target.className.split && contains(target.className.split(' '), 'multiselect-parent') && !parentFound) {
165165
if(target === $dropdownTrigger) {
166166
parentFound = true;
167167
}

0 commit comments

Comments
 (0)