vue-sticky-directive icon indicating copy to clipboard operation
vue-sticky-directive copied to clipboard

Width problem on IE 11

Open deraw opened this issue 6 years ago • 0 comments

Hi! First off, thanks for making this directive!

One of the teams I work with is using it and we detected a problem on IE 11. With a top-sticky element, when we scroll down everything works fine, but when we scroll all the way up to the top of the page, the sticky element gets a width of 0 and still has the position: fixed; style. We use the directive like this : v-sticky="stickyEnabled", stickyEnabled goes true when scrolling passed a certain point, and the height of the sticky element is modified because it's content changes (we add a placeholder to avoid "jumping").

I'm not sure this is related to this issue, but on IE the top-sticky class never gets removed: on line 212, two string are passed to classList.remove(), but on IE only one is accepted

deraw avatar Aug 01 '19 14:08 deraw