DOM Exception trigger with ButtonDirective afterViewInit #9497
Labels
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
I'm submitting a ... (check one with "x")
Plunkr Case (Bug Reports)
Current behavior
An error is trigger when the lifecycle hook afterViewInit is trigger
Expected behavior
No error
Minimal reproduction of the problem with instructions
pButton
directive where in the icon section a space char is leftWhat is the motivation / use case for changing the behavior?
Please tell us about your environment:
Ubuntu 18.04
Browser: all
Language: all
Node (for AoT issues):
node --version
= v14.8.0Solution
domhandler.ts
in the static methodaddMultipleClasses
before runningelement.classList.add(styles[i]);
you should test if styles[i] is ok to be added to the classListThe text was updated successfully, but these errors were encountered: