bootstrap 4 collapse data-parent code example
Example: how to keep both data-toggle in bootstrap4
<span data-toggle="modal" data-target="modal">
<a data-toggle="tooltip" data-placement="top" title="Tooltip">
Hover Me
</a>
</span>