Trying to use FontAwesomeIcon wrapped in a button element.
Issue: - Clicking on the icon itself does not trigger the button - When adding text before the icon, clicking on the text triggers the button. But clicking the icon portion of the button still will not trigger.
<button className="profile-edit-btn">
Edit <FontAwesomeIcon
className="edit-icon"
icon="edit"
size="2x"
/>
</button>
Any ideas why this is behaving this way?