vue-sticky-directive
vue-sticky-directive copied to clipboard
Element Reset Fails to Remove Sticky Classes on Conditional Reset
When using the v-sticky attribute to disable stickiness, e.g. using a close button, the bottom-sticky and top-sticky classes remain on the element. This can be fixed by removing both classes from the element in the resetElements callback.