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

Increase Link UI search results to 10 on Nav Editor screen #34808

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions packages/edit-navigation/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,12 @@ function NavEditor( { settings } ) {
const __experimentalSetIsInserterOpened = setIsInserterOpened;

// Provide link suggestions handler to fetch search results for Link UI.
const __experimentalFetchLinkSuggestions = ( search, searchOptions ) =>
fetchLinkSuggestions( search, searchOptions, settings );
const __experimentalFetchLinkSuggestions = ( search, searchOptions ) => {
// Bump the default number of suggestions.
// See https://github.com/WordPress/gutenberg/issues/34283.
searchOptions.perPage = 10;
return fetchLinkSuggestions( search, searchOptions, settings );
};

const editorSettings = useMemo( () => {
return {
Expand Down