I have the circuit below. GPIO15 goes to a ESP32 and lights up an LED. If 12v is completely connected, LED is on. When 12v is completely disconnected LED is off. This is the correct behavior I expect.
When only 12v- (GND) is connected (no 12v+ connection) LED is off. BUT, when only 12v+ is connected (no 12v ground) LED is flashing on and off.
Why is it flashing?
Am I missing something on how transistors work when positive only source is connected?

When only 12v- (GND) is connected (no 12v+ connection) LED is off. BUT, when only 12v+ is connected (no 12v ground) LED is flashing on and off.
Why is it flashing?
Am I missing something on how transistors work when positive only source is connected?
| 12V+ | 12V- | LED |
| CONNECTED | CONNECTED | ON |
| DISCONNECTED | DISCONNECTED | OFF |
| DISCONNECTED | CONNECTED | OFF |
| CONNECTED | DISCONNECTED | Flashing (Why?) |


