You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Cannot use multiple classes separated by space in animate.leave #62964
Please provide a link to a minimal reproduction of the bug
No response
Please provide the exception or error you saw
root_effect_scheduler.mjs:3597 ERROR InvalidCharacterError: Failed to execute 'add' on 'DOMTokenList': The token provided ('animate-jump-out animate-duration-300') contains HTML space characters, which are not valid in tokens.
at NoneEncapsulationDomRenderer.addClass (dom_renderer.mjs:658:18)
Please provide the environment you discovered this bug in (run ng version)
@imaksp Both a string with a space and an array of strings should work. Can you create a stackblitz minimal repro for us? Specifically with the CDK? That'd be really helpful for debugging it.
Activity
tomer953 commentedon Aug 3, 2025
For multiple class name, the api is consistent with class binding, meaning you should pass array of strings
thePunderWoman commentedon Aug 4, 2025
@imaksp Both a string with a space and an array of strings should work. Can you create a stackblitz minimal repro for us? Specifically with the CDK? That'd be really helpful for debugging it.
thePunderWoman commentedon Aug 4, 2025
@imaksp Actually don't worry about the repro. I was able to reproduce it in a test. Thanks for reporting this!
fix(core): fix support for space separated strings in leave animations
fix(core): fix support for space separated strings in leave animations
fix(core): fix support for space separated strings in leave animations (
imaksp commentedon Aug 4, 2025
Hi, thanks for the quick fix!
angular-automatic-lock-bot commentedon Sep 4, 2025
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.