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

🐛 [BUG] - List Format Allows Multiple Buttons After Switching from Carousel #351

Open
Emnaghz opened this issue Nov 20, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@Emnaghz
Copy link
Collaborator

Emnaghz commented Nov 20, 2024

Description

When displaying a List, only one button should be allowed in the List format. However, the following steps lead to an incorrect behavior:

  • Switch the display format to Carousel.
  • Add an additional button.
  • Switch back to List format.
  • Save the changes.

Observed Behavior: No errors are displayed, and the List format incorrectly allows multiple buttons to exist, violating the intended single-button restriction for List format.

Expected Behavior:

When switching back to List format, any additional buttons should be automatically removed, ensuring that only one button remains. The system should enforce the single-button limitation for List format, either by validation or by displaying an appropriate error message.

Screencast.from.11-20-2024.10.59.26.AM.webm

image

Reproduction steps

1. Go to 'Visual editor' and add a new List block
2. Go to 'Message'
3. Switch the display mode to Carousel.
2. Add an additional button to the carousel.
3. Switch back to the List format.
4. Save the changes.
5. Observe that multiple buttons remain in the List format

Logs

No response

Browsers

No response

OS

No response

@Emnaghz Emnaghz added the bug Something isn't working label Nov 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant