BS4 Listgroup badges

Is there a way to only call the onclick function of a BS4 listgroup item if only the badge is clicked?

Thanks