Dome light stays on. on 2003 Ford Ranger

When closing door the dome light stays on, it may stay on for a few minutes or as long as an hour.

Asked by for the 2003 Ford Ranger
spray Wd40 into the door latch.The light/door indicator switch is within the latch and sometimes gets stuck.this happent to mine and bothered me for a while umntil someone advised me of this and i did it and it worked.
2 answers
Very common problem, spray WD-40 or silicone spray on your door latches.