mirror of
https://github.com/EDCD/coriolis.git
synced 2025-12-08 22:33:24 +00:00
Handle select edge-case
This commit is contained in:
@@ -151,7 +151,9 @@ angular.module('app').controller('OutfitController', ['$window', '$rootScope', '
|
||||
while (elem && elem !== e.currentTarget && !elem.getAttribute('cpid')) {
|
||||
elem = elem.parentElement;
|
||||
}
|
||||
id = elem.getAttribute('cpid');
|
||||
if (elem) {
|
||||
id = elem.getAttribute('cpid');
|
||||
}
|
||||
}
|
||||
|
||||
if (id) {
|
||||
|
||||
Reference in New Issue
Block a user