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

Fix Accordion block appender behavior #1851

Merged

Conversation

olafleur
Copy link
Member

@olafleur olafleur commented Mar 15, 2021

Description

This is a proposed fix for #1768

Types of changes

Bug fix

How has this been tested?

The automated test was only triggering the onMouseUp event. When you change it to a full click event in the test, it reproduce the error in the issue.
I have changed the onMouseUp event in the component to on MouseDown and it fixes the test and the behavior, from what I see.

Checklist:

  • My code is tested
  • My code follows accessibility standards
  • My code has proper inline documentation
  • I've included any necessary tests

Copy link
Member

@jonathanbardo jonathanbardo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@olafleur 👏 Thank you! I tested your CyPress fix and it does indeed highlight the bug quite nicely.

Copy link
Member

@AnthonyLedesma AnthonyLedesma left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works well. LGTM!

@AnthonyLedesma AnthonyLedesma added this to the Next Release milestone Mar 15, 2021
@AnthonyLedesma AnthonyLedesma added the [Type] Bug Something that is not working as expected label Mar 15, 2021
@AnthonyLedesma AnthonyLedesma merged commit ca55120 into godaddy-wordpress:master Mar 15, 2021
@AnthonyLedesma AnthonyLedesma changed the title Fix for the fact that sometimes too much accordion items were added Fix Accordion block appender behavior Mar 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Type] Bug Something that is not working as expected
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants