This is general guidance, not a veterinary diagnosis and not legal advice. Ask a vet and the veterinary directorate about your dog.
Most bites to children come from the family dog, not a strange dog, when a child hugs a sleeping or eating dog or pulls a tail or ear. The rule is that the dog is left alone with food and in its bed. A child learns to offer food on a flat hand and not to push a face into the dog's face.
Do not leave a small child alone with the dog, even if the dog likes children. Stay there until the child understands. A growl is a useful warning. Do not punish the growl. The dog may skip it and bite the next time.
The puppy and the child both need a place to escape. A crate, or a room whose door can close, should not be opened onto them. If a baby is coming, get the dog used to baby sounds and the smell of a blanket before the day itself. Do not wait for the first day and expect the dog to cope.
Any bite, even a small one, gets washed and seen by a doctor. Repeated biting is a decision for a vet and a trainer, not advice from an online group.
Trusted further reading
These links open external sites. The platform is not affiliated with them.
