core icon indicating copy to clipboard operation
core copied to clipboard

[Bug report] `collapsible: true,` fail

Open junjieweb opened this issue 3 years ago • 9 comments

Description

import { defineUserConfig } from 'vuepress';

export default defineUserConfig({
  base: '/',
  title: 'VuePress Starter',
  description: 'VuePress Starter Project in Stackblitz',
  theme: '@vuepress/theme-default',
    themeConfig: {
      navbar: [
        {
          text: 'guide',
          link: '/guide/',
        },
        {
          text: 'test',
          link: '/test/',
        }
      ],
      sidebar: {
        '/guide/': [
            {
              text: 'test1',
              children: ['/guide/c.md', '/guide/d.md'],
            },
        ],
        '/test/': [
          {
            text: 'test1',
            collapsible: true,
            children: ['/test/a.md', '/test/b.md'],
          },
        ],
      },
    },
});

/test/ in collapsible: true, fail

Reproduction

https://stackblitz.com/edit/vuepress-urhlna?file=docs%2F.vuepress%2Fconfig.ts

Used Package Manager

npm

System Info

no error

junjieweb avatar May 01 '22 17:05 junjieweb

https://user-images.githubusercontent.com/33315834/166157094-739026e8-69de-4d04-856d-32fa6fd9e622.mp4

image image image

Mister-Hope avatar May 01 '22 17:05 Mister-Hope

Hello @junjieweb. Please provide a minimal reproduction using a GitHub repository or v2.vuepress.vuejs.org/new. Issues marked with need reproduction will be closed if they have no activity within 3 days.

github-actions[bot] avatar May 01 '22 17:05 github-actions[bot]

Sorry, the problem seems to have disappeared just now, but there seems to be something wrong with this one without configuration items, it can be turned on and off by clicking image

image

junjieweb avatar May 01 '22 17:05 junjieweb

The two problems seem to come in turns, either test cannot be folded, or guide can be folded, one has a problem, the other is fine

junjieweb avatar May 01 '22 17:05 junjieweb

Reproduction https://stackblitz.com/edit/vuepress-urhlna?file=docs%2F.vuepress%2Fconfig.ts

junjieweb avatar May 03 '22 17:05 junjieweb

This issue is marked as stale because it has not had recent activity. Issues marked with stale will be closed if they have no activity within 3 days.

github-actions[bot] avatar May 15 '22 01:05 github-actions[bot]

Updated, I am be able to reproduce in latest version.

https://stackblitz.com/edit/vuepress-7oyrkr?file=docs%2F.vuepress%2Fconfig.ts

I will get this fixed soon

Mister-Hope avatar May 15 '22 03:05 Mister-Hope

This issue is marked as stale because it has not had recent activity. Issues marked with stale will be closed if they have no activity within 3 days.

github-actions[bot] avatar May 23 '22 01:05 github-actions[bot]

This issue is marked as stale because it has not had recent activity. Issues marked with stale will be closed if they have no activity within 3 days.

github-actions[bot] avatar May 31 '22 01:05 github-actions[bot]