Currently setting activeHref means that any time any prop updates, it resets the internal activeHref to the prop. Because of this, there is no way to set the initial default active href and then let the component's logic take over when items are clicked.
This add defaultActiveHref (naming similar to input's value vs defaultValue) to allow for unmanaged activeHref to be defaulted. It is mostly needed when window.location.pathname doesn't work (such as when links have hashes).
Currently setting
activeHref
means that any time any prop updates, it resets the internal activeHref to the prop. Because of this, there is no way to set the initial default active href and then let the component's logic take over when items are clicked. This adddefaultActiveHref
(naming similar to input'svalue
vsdefaultValue
) to allow for unmanaged activeHref to be defaulted. It is mostly needed whenwindow.location.pathname
doesn't work (such as when links have hashes).Changelog
New
defaultActiveHref
prop toInteriorLeftNav