diff --git a/app/modules/components/color-selector/color-selector.directive.coffee b/app/modules/components/color-selector/color-selector.directive.coffee index fc9df40a..cf5aa8f2 100644 --- a/app/modules/components/color-selector/color-selector.directive.coffee +++ b/app/modules/components/color-selector/color-selector.directive.coffee @@ -44,7 +44,8 @@ ColorSelectorDirective = ($timeout) -> .mouseenter(cancel) .mouseleave(close) - bindOnce scope, 'vm.initColor', (color) -> + scope.$watch 'vm.initColor', (color) -> + # We can't just bind once because sometimes the initial color is reset from the outside ctrl.setColor(color) return { diff --git a/app/partials/includes/modules/admin/project-tags.jade b/app/partials/includes/modules/admin/project-tags.jade index e64007c3..83b6fc78 100644 --- a/app/partials/includes/modules/admin/project-tags.jade +++ b/app/partials/includes/modules/admin/project-tags.jade @@ -8,7 +8,7 @@ section form.add-tag-container.new-value.hidden tg-color-selector.color-column( is-color-required="false" - ng-model="newValue" + init-color="newValue.color" on-select-color="newValue.color = color" )