The dishwasher's rear leg has a spring. Remove the screw from the tensioner with a nut driver. The dishwasher has three holes for the screw to be put into. Move the tensioner to a higher number hole if the door closes by itself.
Let's Get It Fixed!
HomeX virtual experts will assess your issue (for free!) and can resolve simple problems.