This PR fixes a bug where behaviors that are added via a stylesheet were not being removed when the host stylesheet was removed. Instead of removeBehavior, removeStyles was invoking addBheavior.
I corrected the call and added a test.
🎫 Issues
👩💻 Reviewer Notes
📑 Test Plan
✅ Checklist
General
[ ] I have included a change request file using $ yarn change
[ ] I have added tests for my changes.
[ ] I have tested my changes.
[ ] I have updated the project documentation to reflect my changes.
[ ] I have read the CONTRIBUTING documentation and followed the standards for this project.
Pull Request
📖 Description
This PR fixes a bug where behaviors that are added via a stylesheet were not being removed when the host stylesheet was removed. Instead of
removeBehavior
,removeStyles
was invokingaddBheavior
.I corrected the call and added a test.
🎫 Issues
👩💻 Reviewer Notes
📑 Test Plan
✅ Checklist
General
$ yarn change
Component-specific
⏭ Next Steps