Fix cart fields sharing same scope

All cart page quantity fields were displaying a single max quantity instead of a different value for each one.
This commit is contained in:
Matt-Yorkley
2020-05-19 09:25:00 +02:00
parent e54fad9bfd
commit 05e6f5792d
2 changed files with 2 additions and 1 deletions

View File

@@ -1,6 +1,7 @@
Darkswarm.directive "ofnOnHand", ->
restrict: 'A'
require: "ngModel"
scope: true
link: (scope, elem, attr, ngModel) ->
# In cases where this field gets its value from the HTML element rather than the model,