Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[@mantine/core] add non-empty check for portal className #5400

Merged
merged 1 commit into from Dec 10, 2023

Conversation

jvdsande
Copy link
Contributor

@jvdsande jvdsande commented Dec 9, 2023

As discussed on Discord, filter out the tokens passed to classList.add in modal to avoid the following DOM exception:

Uncaught DOMException: Failed to execute 'add' on 'DOMTokenList': The token provided must not be empty.

I added two non-regression tests regarding this.

@rtivital rtivital merged commit 3fbe950 into mantinedev:master Dec 10, 2023
1 check passed
@rtivital
Copy link
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants