Open dlockhart opened 3 years ago
This started failing in filter at the 1.150.1
version of core
: https://github.com/BrightspaceUI/core/compare/v1.150.0...v1.150.1
However, digging into this, this code is just adjusting the width that's used and doesn't actually cause any more resizes than what was happening before. From what I can tell, this code somehow changes the timing and that is what is making the test fail. Removing other unrelated tests in the same file will make the failing test pass.
It seems like Safari's ResizeObserver reporter code gets mad if we try to close the dropdown or end the test before it's done telling us things. From my testing, this update will fix the test: https://github.com/BrightspaceUILabs/facet-filter-sort/pull/85
But this issue may still be valid - it seems we run the resize code in dropdown three times with the same width.
This was noticed in the facet-filter-sort repo, which has a dropdown with both a menu inside and dropdown-tabs.
This exception is thrown in Safari only:
Safari only added support for ResizeObserver in January 2020, which could explain why we weren't seeing this before.
The explanation for that error is this:
Digging deeper:
I can't figure out why Safari is complaining and the other browsers aren't... everything seems to be happening in the same sequence.