storybook-addon-react-live-edit icon indicating copy to clipboard operation
storybook-addon-react-live-edit copied to clipboard

Live Edit disappears when I switch addon tabs

Open Vivek205 opened this issue 6 years ago • 2 comments

whenever I switch the to a different addon tab and come back to the Liveedit tab in the storybook, the Live edit becomes empty. It reappears when I reload the page.

Vivek205 avatar Sep 19 '19 04:09 Vivek205

Same problem here. Only can see it filled for a first time upon reload of the page.

Richacinas avatar Oct 10 '19 07:10 Richacinas

As a temp workaround I used to pre-select it with selectedPanel on story level.

.add(
    'Live edit',
    withLiveEdit(
      `return (<Button type="primary">Default</Button>);`,
      { React, Button } // context
    ),
    {
      knobs: { disabled: true },
      actions: { disabled: true },
      a11y: { disabled: true },
      info: {
        propTables: [Button],
        source: false
      },
      options: { selectedPanel: 'storybook/react-live-edit/panel' }
    }
  )

sanusart avatar Nov 09 '19 14:11 sanusart