Edge 840 solar charging

Hi,

My device charges via solar panel only when exercise is running. When i set it to sleep mode or turn off, then it does not charge. Is it OK? Is this how it's supposed to work?