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
You actually need to apply static positioning to all elements between the element that tether positions and the body.
This is how I currently manage to make it work, it's a bit of a brute force fix, but atleast it works.
// Set position static to short-circuit Hubspot Tether's positioning// https://github.com/HubSpot/tether/pull/98/constFIX_ELEMENT_ID='tether_fix_style_element';exportfunctioninsertTetherFix(){letstyleElement=document.createElement('style');styleElement.id=FIX_ELEMENT_ID;styleElement.innerText='#ember-testing-container, #ember-testing-container * {'+'position: static !important;'+'}';document.body.appendChild(styleElement);}exportfunctionremoveTetherFix(){letstyleElement=document.getElementById(FIX_ELEMENT_ID);document.body.removeChild(styleElement);}
then:
test('test something',function(assert){insertTetherFix();// test somethingandThen(()=>removeTetherFix());});
The text was updated successfully, but these errors were encountered:
You actually need to apply static positioning to all elements between the element that tether positions and the body.
This is how I currently manage to make it work, it's a bit of a brute force fix, but atleast it works.
then:
The text was updated successfully, but these errors were encountered: