Adjustment is key if this is your type of latch
Don, I have replaced a few of those myself on both the fridge lid and cabinets. They are very sensitive to the positioning of the "catcher" side so that the catch doesn't close prematurely. Once I read over this literature (attached - see p3) and understood how to adjust, I haven't had a problem for several years.
Also our fridge lid had two latches side by side and I ended up just leaving it off when I couldn't get it adjusted like I wanted. The heavy lid seems to stay closed just fine and it's easier to open.