Fixing color when creating tags on admin area
parent
3f686d4c52
commit
c6b5228d54
|
@ -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 {
|
||||
|
|
|
@ -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"
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in New Issue