Dome lights stay on while driving
Are you sure the dome light switch isn’t turned all the way to the right?
Assuming you don’t have the switch set to always on one of the door switches could be bad. Test all of them if possible to be sure. Dome light delay is controlled by the Body Control Module so the problem might lie there.