Commit 76abab7e authored by Jacques Erasmus's avatar Jacques Erasmus

Merge branch 'ph/fixVirtualScrollIndexHoverBug' into 'master'

Fixes z-index bug when hovering in virtual scroller

See merge request gitlab-org/gitlab!65524
parents 04d99bd5 ddec9763
...@@ -213,9 +213,9 @@ export default { ...@@ -213,9 +213,9 @@ export default {
const el = this.$el.closest('.vue-recycle-scroller__item-view'); const el = this.$el.closest('.vue-recycle-scroller__item-view');
if (this.glFeatures.diffsVirtualScrolling && el) { if (this.glFeatures.diffsVirtualScrolling && el) {
// We can't add a class with Vue because of the way the virtual // We can't add a style with Vue because of the way the virtual
// scroller library renders the diff files // scroller library renders the diff files
el.classList.toggle('gl-z-index-1', val); el.style.zIndex = val ? '1' : null;
} }
}, },
}, },
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment