That is kinda strange.

The dome light dims before it goes out after you close the door. That may be what your problem is. One of the leads at the dome light should have power alla time and the other only when the door is open. You'll have to use a meter or test light to figure it out for sure.

IIRC, etlsport had a pretty good writeup IRT his woes when converting his dome light to LED. I'll see if I can find it.