mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
The user can now type anything into the quantity field and some of it may not be valid. These safe guards ensure that the buttons still work even if the quantity is undefined or out of range. Angular guards against the value being out of range but that has other side-effects. We want to be able to de-activate some of Angular's behaviour.