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

Block animations not working correctly and throwing and error with particular blocks #23047

Closed
talldan opened this issue Jun 10, 2020 · 1 comment · Fixed by #23084
Closed
Labels
[Feature] Blocks Overall functionality of blocks [Priority] High Used to indicate top priority items that need quick attention [Type] Bug An existing feature does not function as intended

Comments

@talldan
Copy link
Contributor

talldan commented Jun 10, 2020

Describe the bug
Related #22936

Particular blocks seem to result in block animations not working correctly. The blocks overlap and an error is thrown in the console:

TypeError: ref.current is undefined

Pointing to these lines:

ref.current.style.transformOrigin = 'center';
ref.current.style.transform =
x === 0 && y === 0 ? null : `translate3d(${ x }px,${ y }px,0)`;
ref.current.style.zIndex =
! isSelected || ( x === 0 && y === 0 ) ? null : '1';

To reproduce
Steps to reproduce the behavior:

  1. Create a new post and add some paragraphs
  2. Move blocks around
  3. Observe everything works ok
  4. Group some of the paragraphs
  5. Move blocks around
  6. Observe an error is thrown and blocks overlap
@talldan talldan added [Type] Bug An existing feature does not function as intended [Feature] Blocks Overall functionality of blocks [Priority] High Used to indicate top priority items that need quick attention labels Jun 10, 2020
@talldan
Copy link
Contributor Author

talldan commented Jun 11, 2020

Close by #23084.

@talldan talldan closed this as completed Jun 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Blocks Overall functionality of blocks [Priority] High Used to indicate top priority items that need quick attention [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant