A dog trainer has shared a simple way to handle a common problem when out with your pet.