It's not recommended to leave a battery connected to a charger indefinitely. Overcharging can lead to damage or reduced lifespan of the battery, and in some cases, it may pose safety hazards such as overheating or fire risk. Modern battery chargers often have features like automatic shut-off or float mode to prevent overcharging and maintain the battery at an optimal level without causing harm.