Skip to content
This repository was archived by the owner on Oct 16, 2023. It is now read-only.

fix: Disabled blocks are no longer draggable#44

Merged
kjohnson merged 3 commits intodevelopfrom
fix/draggable-disable-41
Jul 27, 2022
Merged

fix: Disabled blocks are no longer draggable#44
kjohnson merged 3 commits intodevelopfrom
fix/draggable-disable-41

Conversation

@kjohnson
Copy link
Copy Markdown
Contributor

@kjohnson kjohnson commented Jul 26, 2022

Resolves #41

Description

This PR forks the BlockTypesList component from @wordpress/block-editor/build/components so that the isDraggable prop accounts for the individual items' isDisabled prop.

Visuals

Peek 2022-07-26 19-06

Testing Instructions

  • Disabled items in the block list should not be draggable.

Pre-review Checklist

  • Acceptance criteria satisfied and marked in related issue
  • Relevant @unreleased tags included in DocBlocks
  • Includes unit tests
  • Reviewed by the designer (if follows a design)
  • Self Review of code and UX completed

@github-actions
Copy link
Copy Markdown

A build of this branch is available at https://impress-org.github.io/givewp-next-gen/fix/draggable-disable-41

@kjohnson kjohnson marked this pull request as ready for review July 26, 2022 23:11
@kjohnson kjohnson requested a review from jonwaldstein July 26, 2022 23:13
Copy link
Copy Markdown
Contributor

@jonwaldstein jonwaldstein left a comment

Choose a reason for hiding this comment

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

@kjohnson great work hunting this bug down! I actually went ahead and updated this fork to use the actual react component src instead of the build file. That should make this more maintainable and readable without the baggage from the build.

@kjohnson
Copy link
Copy Markdown
Contributor Author

@jonwaldstein thanks for that change - much better!

@kjohnson kjohnson merged commit e15d70c into develop Jul 27, 2022
@github-actions
Copy link
Copy Markdown

A build of this branch is available at https://impress-org.github.io/givewp-next-gen/develop

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Disabled blocks should not be draggable

2 participants