why does my automatic car shut off when break aplied? on 1992 Toyota Paseo

When I break at stop light, or stop signs, my car shutts off, and all the lights come on. I was wondering why this happenes?

Get Your Car Fixed at a RepairPal Certified Shop.
We certify shops based on expertise, quality work, and verified customer reviews
2 answers
I had same problem with mine. workshop changed it Stepper Motor Sensor. and now its fine,
if that wont work try the idle