...and sometimes it stops charging the device when you clear the dialog box. Not always, though, which actually makes it worse because of the uncertainty.
And, yeah, I solve it by having a separate USB hub for charging things - but that's a pain for travelling as I'd rather not have to bring an extra device.
(And it doesn't happen under Linux, so I'm pretty sure it's a MacOS issue rather than something inherent to usb-c)