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?

Asked by for the 1992 Toyota Paseo
if that wont work try the idle
1 more answer
I had same problem with mine. workshop changed it Stepper Motor Sensor. and now its fine,