This just started happening with me. My iPad shows at or near full battery percentage, but then dies and goes to the connect to power screen. Afterward the meter shows 100% full. Any ideas as to what might be causing this?

Edit: as a note, it does go dead right after if I just unplug it again.