Commit 252e1089 authored by Jacques Erasmus's avatar Jacques Erasmus

Merge branch 'ph/improvePerformanceTableContentsDropdown' into 'master'

Fixes performance issue with the table of contents dropdown

See merge request gitlab-org/gitlab!62476
parents efc2043d bd2b2ccc
...@@ -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