If your dishwasher has any controls on the door, it's likely there may be some fault with the cabling (switches or circuitry), so that when it's moved, it creates an earth leakage condition, tripping the safety switch... which is exactly what they are designed to do.
Safety switches are not 100% reliable and having a faulty appliance that uses water and electricity is not a good mix.
Stop using the dishwasher and disconnect power to it until the fault is rectified.
Bookmarks