Cut a couple inch long piece of appropriate diameter fuel line. Stick it into the blank space where the latch hinges when you open the glove box. It will act as a spring to keep the latched closed. And it won’t fall out because of the pressure.
Mine just started popping open a year or so ago and it’s been fine since that two minute fix.
I’ll try and take a picture in the morning. And see what size hose it is.