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
{{ message }}
Repository navigation
No way to access tether object to trigger a manual position() #174
👍 I think it's worth exposing the raw tether instance. It would also be good to have a convenience method for updating position (sounds common enough).
I don't believe it is possible to override the ref functionality allow it to return something else. A proposed solution is to add tetherRef... which is a ref to get the tether instance as created by TetherContent. Tooltip and Popover have also been extended to pass the prop along so you can use tetherRef on them to get access to the tether instance. This allows you to perform the position() call. Note, that much like the native ref functionality, tetherRef will be called both when an instance is created (providing the instance in the call), as well as when it is destroyed (passing null). Then means, you should perform a null check before trying to access it.
Activity
eddywashere commentedon Oct 13, 2016
👍 I think it's worth exposing the raw tether instance. It would also be good to have a convenience method for updating position (sounds common enough).
feat(tether): add ability to get tether ref
TheSharpieOne commentedon Oct 17, 2016
I don't believe it is possible to override the ref functionality allow it to return something else. A proposed solution is to add
tetherRef... which is a ref to get the tether instance as created by TetherContent. Tooltip and Popover have also been extended to pass the prop along so you can use tetherRef on them to get access to the tether instance. This allows you to perform theposition()call. Note, that much like the native ref functionality, tetherRef will be called both when an instance is created (providing the instance in the call), as well as when it is destroyed (passing null). Then means, you should perform a null check before trying to access it.feat(TetherContent): Add `tetherRef` to TetherContent (#181)