Skip to content

Commit ce76412

Browse files
authored
Merge pull request #6 from NandhakumarE/develop
Isolate DnD stories in iframes to prevent ID conflicts on Docs page
2 parents 41eb7b0 + 818c001 commit ce76412

4 files changed

Lines changed: 6 additions & 0 deletions

File tree

src/stories/core/LockedRules.stories.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ const meta: Meta<typeof LockedDemo> = {
128128
parameters: {
129129
layout: "padded",
130130
docs: {
131+
story: { inline: false, height: "350px" },
131132
source: { code: null },
132133
description: {
133134
component: `

src/stories/core/MaxDepth.stories.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ const meta: Meta<typeof MaxDepthDemo> = {
6868
parameters: {
6969
layout: "padded",
7070
docs: {
71+
story: { inline: false, height: "350px" },
7172
source: { code: null },
7273
description: {
7374
component: `

src/stories/core/Operators.stories.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@ const meta: Meta<typeof OperatorsDemo> = {
151151
parameters: {
152152
layout: "padded",
153153
docs: {
154+
story: { inline: false, height: "350px" },
154155
source: { code: null },
155156
description: {
156157
component: `

src/stories/core/WithDragAndDrop.stories.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ const meta: Meta<typeof WithDragAndDropDemo> = {
7979
parameters: {
8080
layout: "padded",
8181
docs: {
82+
// Render each story in iframe to isolate DnD contexts
83+
story: { inline: false, height: "350px" },
8284
source: { code: null },
8385
description: {
8486
component: `
@@ -155,6 +157,7 @@ export const WithNestedGroups: Story = {
155157
args: { initialQuery: nestedQuery },
156158
parameters: {
157159
docs: {
160+
story: { inline: false, height: "450px" },
158161
description: {
159162
story: "Drag rules between groups or reorder groups themselves.",
160163
},

0 commit comments

Comments
 (0)