Skip to content

Commit

Permalink
DataViews: make the move left/right controls in table header always a…
Browse files Browse the repository at this point in the history
…vailable (WordPress#64646)

Co-authored-by: oandregal <oandregal@git.wordpress.org>
Co-authored-by: youknowriad <youknowriad@git.wordpress.org>
  • Loading branch information
3 people authored Aug 20, 2024
1 parent ebc9865 commit b1324c5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 2 additions & 0 deletions packages/dataviews/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## Unreleased

- The "move left/move right" controls in the table layout (popup displayed on cliking header) are always visible. ([#64646](https://github.com/WordPress/gutenberg/pull/64646)). Before this, its visibility depending on filters, enableSorting, and enableHiding.

## 4.1.0 (2024-08-07)

## Internal
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,7 @@ const _HeaderMenu = forwardRef( function HeaderMenu< Item >(
!! field.elements?.length &&
!! operators.length &&
! field.filterBy?.isPrimary;
if ( ! isSortable && ! isHidable && ! canAddFilter ) {
return field.label;
}

return (
<DropdownMenu
align="start"
Expand Down

0 comments on commit b1324c5

Please sign in to comment.