You need to left click to exit door after filling all containers.
Thank you, I found that out recently since I was using space to interact with the puzzle doors.