fix portal modal bugs (svg root taking target focus)