mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Use fresh scope for each quantity field
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
Darkswarm.directive "validateStockQuantity", (StockQuantity) ->
|
||||
restrict: 'A'
|
||||
require: "ngModel"
|
||||
scope: true
|
||||
|
||||
link: (scope, element, attr, ngModel) ->
|
||||
ngModel.$parsers.push (selectedQuantity) ->
|
||||
|
||||
Reference in New Issue
Block a user