Better renderElementTo
PR #19
Use Children.toArray
instead of Children.forEach
to get individual children
Fixed Tether element props not being re-rendered on change
Added the ability to apply an id
, className
, or style
to the wrapper Tether element.
Fixes:
renderElementTo
now uses document.querySelector
Add dependency warning for people using old school script tags
Fix ASI issue with document.body PR #12
Fixes:
Fix tethered element not being positioned correctly
All Tether options are now props
renderElementTag
prop to specify which DOM tag to use to render the second child to
renderElementTo
prop to specify where in the DOM the element should be appended to
Added position
public method from Tether
removed shallowCompare
Bower exposed lib name renamed to TetherComponent
from TetherElement
New API accepts a max of two children. First child is used as the target and second child is used as the element that is being tethered.