microsoft / fast

The adaptive interface system for modern web experiences.
https://www.fast.design
Other
9.28k stars 597 forks source link

fix: fixing bug causing behaviors not to be removed #6737

Closed nicholasrice closed 1 year ago

nicholasrice commented 1 year ago

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 invoking addBheavior.

I corrected the call and added a test.

🎫 Issues

👩‍💻 Reviewer Notes

📑 Test Plan

✅ Checklist

General

Component-specific

⏭ Next Steps