Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Edit block popup has a layout shift when clicking on accordion #2909

Open
cadamsdev opened this issue Jan 11, 2024 · 0 comments
Open

Edit block popup has a layout shift when clicking on accordion #2909

cadamsdev opened this issue Jan 11, 2024 · 0 comments

Comments

@cadamsdev
Copy link

cadamsdev commented Jan 11, 2024

Describe the bug
The edit block popup has a layout shift when clicking on the accordion in a list.

To Reproduce
Steps to reproduce the behavior:

  1. Create a custom component
    e.g
export const CUSTOM_COMPONENTS: CustomComponent[] = [
	{
		component: someComponent,
		name: 'SomeComponent',
		inputs: [
			{
				name: 'images',
				type: 'list',
				subFields: [
					{
						name: 'image',
						type: 'file',
						allowedFileTypes: ['jpeg', 'jpg', 'png'],
						required: true
					}
				]
			}
		]
	},
];
  1. Drag and drop the component onto a page
  2. Hover over the custom component click "Edit"
  3. You should see the edit block popup, click the accordion under "images" notice the popup's position is changed.

Expected behavior
The popup should avoid changing position as it's an unpleasant UX.

Screenshots
2024-01-11 17 53 11

Additional context
Add any other context about the problem here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants