Install a magnetic door stop to keep a door completely open. This is the best way to fix ... For the door to stay closed, the latch needs to fully extend within the strike plate's hole.
However, help is at hand because YouTuber VanTourist has an effortless and cheap way to stop doors and drawers from opening ...