After searching through the forum to find an answer to this issue, I didn't find anything. Therefore I'm creating this thread.
This issue started when I updated OTA to a CM11 nightly. Now whenever I plug my phone on the outlet to charge it or to the computer, it doesn't assume that I unplugged it when I'm done. In other words, it's always charging / always connected to the computer. I've tried to do a full wipe of the phone but it didn't solve the issue. This only happens in certain roms. I do not remember doing a factory reset and flashing the stock rom with ODIN.
However, when I unplug the phone and remove the battery, the issue is fixed. Whenever I plug it back, it starts again.7
I appreciate your help.