It's true, had the same problem after switching the battery of my OnePlus3T.
After reopening the device and reattaching the cable by CAREFULLY using more pressure and using a bit duct tape to fixate everything, it worked just fine.
Charging now works as it's supposed to and I'm again able to see...