Kitchenaid Dishwasher door won't stay latched

The tub/door gasket on my Kitchenaid dishwasher was replaced due to leaks (part # 8193942). Also replaced the pulleys and cords that attach to the door spring (part #8194001) due to one of the sides being broken.

Now the door won’t stay latched.

After looking at similar issues on this forum, I replaced the door strike (part #8574157) and latch (part # 8193830).

Replacing the latch and strike made no difference.

It seems as if the door gasket is too thick. It is putting out a lot of resistance on the door. It was installed according to the instructions. If I take it out and install it backwards (wider edge of the gasket towards the outside), then the door closes just fine. But the gasket is not sealing properly and allows water to leak out.

So, what’s the fix for this?

Thanks.