I have a dashboard page with ~5 components containing Modal instances.
On page load, there are 149 div elements such as <div data-portal="true" />. 6 contain children as expected (for the modal elements), the rest is empty.
When I open one of the modals, the data-focus-id and aria-hidden attributes are updated for all div elements (see screenshot) and remove again when closing the dialog.
The root cause seem to be ~70 card-style elements shown in the page, but neither of them features modal/portal functionality.
Happy to hear any hints
Mantine 7.12.1
Next.js 14.2.4
Update:
I use <Tooltip />within the many card-style elements which spawns the empty data-portal divs.
I think this should not be a performance concern, but maybe somebody knows a way to use a single portal instead