Solutions are displayed which match your selected specification «When charging».
Make sure you selected all specifications which apply to you.
Use an original charger and a lightning cable
If the Touch ID doesn't work when charging, it is possible that you are charging your device with a cheap, fake charger, which may prevent the Touch ID sensor from functioning properly.
Test if your device's Touch ID will work, when the device is being charged using an original Apple charger. If it does, replace the fake charger with an original one, purchased from an authorized Apple store.