ngSticky
ngSticky copied to clipboard
`unStickElement()` sets z-index to 10 instead of restoring original z-index (or no z-index)
unStickElement()
has a hardcoded z-index of 10, where other properties that are restored on unstick are taken from initialCSS
. z-index is preset in initialCSS
, so setting it back to the previous value should be easy. If forcing it to 10 is intentional, maybe add a comment to describe the reason for the behavior.