If a recipe has multiple stackable ingredients belonging to the same group, one is able to drop non-complete stacks of those ingredients, and the ones not used for the recipe are never returned. If you complete the stack, it will stop accepting more ingredients for the same group, however.