Seems the would have wired them to the same switch, no?
There would have to be a "two pole" switch so that the dome light itself would operate seperately