Hi, welcome to Just Answer. Sorry to hear you are having appliance trouble, I know how frustrating that can be! My name is ***** ***** I look forward to helping you!
The oil probably got down into the switch and created a path for the electricity which resulted in the element being turned on. It will likely be fine once that oil has been dried out, but it may require replacing the switch.
May I please have your model number so I am able to provide you with accurate, model specific information?