When connect my charger on my fydeos device bright turns down

When connect charger to my laptop lenovo yoga slim 7 with 4500u ryzen processor the bright on my screen turns.down I think normally, the bright turns up when connect charger and turns down if charger is disconnect. what is the problem?