Properly trigger checkbox toggle on label click only

fixes #577

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl
2018-11-09 15:49:00 +01:00
parent 924d4bd01f
commit 4e5f4df29a

View File

@@ -128,10 +128,11 @@ app.controller('CardController', function ($scope, $rootScope, $sce, $location,
var checkboxId = $($event.target).data('id');
if ($event.target.tagName === 'LABEL') {
$scope.toggleCheckbox(checkboxId);
return;
$event.stopPropagation();
return false;
}
if ($event.target.tagName === 'INPUT') {
$scope.toggleCheckbox(checkboxId);
$event.stopPropagation();
return;
}
if (BoardService.isArchived() || CardService.getCurrent().archived) {