kenmore dish stuck in open position

latch on door is stuck in the open position. I opened the door and it is stuck in the open position so it wont latch when I close the door. This makes it so the dishwasher wont turn on. Almost seems like its stuck in a cycle or the door latch has given out.