Commit bd2b2ccc authored by Phil Hughes's avatar Phil Hughes

Fixes performance issue with the table of contents dropdown

https://gitlab.com/gitlab-org/gitlab/-/issues/331448#note_584475780
parent 3c024aa0
...@@ -60,7 +60,7 @@ export default { ...@@ -60,7 +60,7 @@ export default {
</script> </script>
<template> <template>
<gl-dropdown v-if="!isHidden && items.length" icon="list-bulleted" class="gl-mr-2"> <gl-dropdown v-if="!isHidden && items.length" icon="list-bulleted" class="gl-mr-2" lazy>
<gl-dropdown-item v-for="(item, index) in items" :key="index" :href="`#${item.anchor}`"> <gl-dropdown-item v-for="(item, index) in items" :key="index" :href="`#${item.anchor}`">
<span <span
:style="{ 'padding-left': `${item.spacing}px` }" :style="{ 'padding-left': `${item.spacing}px` }"
......
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