2005 hyundai elantra radio stays on

Normally when the car is turned off the radio will stay on until you open the door.  Now the radio and the clock in the dash will never turn off.  The door switch is good.  Any ideas?