Skip to content

Commit 355dd06

Browse files
Feedback changes updated
1 parent e14c01d commit 355dd06

File tree

1 file changed

+3
-0
lines changed
  • packages/block-library/src/query-title

1 file changed

+3
-0
lines changed

packages/block-library/src/query-title/edit.js

+3
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ import { __, _x, sprintf } from '@wordpress/i18n';
2525
* Internal dependencies
2626
*/
2727
import { useArchiveLabel } from './use-archive-label';
28+
import { useToolsPanelDropdownMenuProps } from '../utils/hooks';
2829

2930
const SUPPORTED_TYPES = [ 'archive', 'search' ];
3031

@@ -40,6 +41,7 @@ export default function QueryTitleEdit( {
4041
setAttributes,
4142
} ) {
4243
const { archiveTypeLabel, archiveNameLabel } = useArchiveLabel();
44+
const dropdownMenuProps = useToolsPanelDropdownMenuProps();
4345

4446
const TagName = `h${ level }`;
4547
const blockProps = useBlockProps( {
@@ -100,6 +102,7 @@ export default function QueryTitleEdit( {
100102
showPrefix: true,
101103
} )
102104
}
105+
dropdownMenuProps={ dropdownMenuProps }
103106
>
104107
<ToolsPanelItem
105108
hasValue={ () => showPrefix === false }

0 commit comments

Comments
 (0)