Checked ALL places where Modal component is used. Checked that after these changes they all work correctly. Here are modals that got changed:
{F2568094}
{F2568093}
{F2568092}
{F2568090}
{F2568086}
Here is before and after for the search component (using prod and dev):
{F2568087}