Skip to content

Commit

Permalink
Add double click event listener to toggle state of the
Browse files Browse the repository at this point in the history
component ListViewBlock to expand and collapse
  • Loading branch information
nirav7707 committed Aug 20, 2024
1 parent 2862f2d commit 7b20e8c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/block-editor/src/components/list-view/block.js
Original file line number Diff line number Diff line change
Expand Up @@ -535,6 +535,7 @@ function ListViewBlock( {
data-block={ clientId }
data-expanded={ canEdit ? isExpanded : undefined }
ref={ rowRef }
onDoubleClick={ toggleExpanded }
>
<TreeGridCell
className="block-editor-list-view-block__contents-cell"
Expand Down

0 comments on commit 7b20e8c

Please sign in to comment.