Skip to content

Commit c0cb997

Browse files
authored
Merge pull request #3822 from microsoft-search/develop
Patches to v4.12.2
2 parents fd4faef + 257daab commit c0cb997

File tree

7 files changed

+10
-17
lines changed

7 files changed

+10
-17
lines changed

docs/usage/search-box/index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ The 'Search box' Web Part allows users to enter free text search queries connect
2121

2222
### Query suggestions
2323

24-
!["Search Box suggestions"](../../assets/webparts/search-box/search_box_suggestions){: .center}
24+
!["Search Box suggestions"](../../assets/webparts/search-box/search_box_suggestions.png){: .center}
2525

2626
The query suggestions allows users to easily find relevant query keywords based on their entry:
2727

docs/usage/search-verticals/index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ The options for a vertical are as follow:
2323
| **Link URL** | If the tab is an hyperlink, the link URL to use. Tokens `{<TokenName>}` are supported here. See [tokens](../search-results/tokens.md) for more info.
2424
| **Open behavior** | If the tab is an hyperlink, the opening behavior (new tab or current tab).
2525
| **Show link icon** | If the tab is an hyperlink, display or hide an icon next to the tab name indicating the tab is a link (same page or external).
26-
| **Audience** | Groups that this vertical will be visible to. If left empty the vertical will be visible for all users.
26+
| **Audience** | Groups that this vertical will be visible to. If left empty the vertical will be visible for all users. Requires at least User.Read.All and GroupMember.Read.All permissions for the SharePoint Online Client Extensibility Web Application Principal.

search-parts/config/package-solution.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"solution": {
44
"name": "PnP Modern Search - Search Web Parts - v4",
55
"id": "59903278-dd5d-4e9e-bef6-562aae716b8b",
6-
"version": "4.12.0.0",
6+
"version": "4.12.2.0",
77
"includeClientSideAssets": true,
88
"skipFeatureDeployment": true,
99
"isDomainIsolated": false,

search-parts/package-lock.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

search-parts/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pnp/modern-search-web-parts",
3-
"version": "4.12.0",
3+
"version": "4.12.2",
44
"private": true,
55
"main": "lib/index.js",
66
"engines": {

search-parts/src/components/DetailsListComponent.tsx

-8
Original file line numberDiff line numberDiff line change
@@ -430,13 +430,6 @@ export class DetailsListComponent extends React.Component<IDetailsListComponentP
430430

431431
const { columns, items } = this.state;
432432

433-
let focusIndex = -1;
434-
if (this.props.selectedKeys && this.props.selectedKeys.length > 0) {
435-
const key = this.props.selectedKeys[0];
436-
focusIndex = items.findIndex(item => item.key == key);
437-
}
438-
439-
440433
let shimmeredDetailsListProps: IShimmeredDetailsListProps = {
441434
theme: this.props.themeVariant as ITheme,
442435
items: items,
@@ -446,7 +439,6 @@ export class DetailsListComponent extends React.Component<IDetailsListComponentP
446439
selection: this._selection,
447440
layoutMode: DetailsListLayoutMode.justified,
448441
isHeaderVisible: true,
449-
initialFocusedIndex: focusIndex,
450442
enableShimmer: this.props.showShimmers,
451443
selectionPreservedOnEmptyClick: true,
452444
enterModalSelectionOnTouch: true,

search-parts/src/webparts/searchResults/SearchResultsWebPart.ts

+4-3
Original file line numberDiff line numberDiff line change
@@ -2461,16 +2461,17 @@ export default class SearchResultsWebPart extends BaseWebPart<ISearchResultsWebP
24612461
if (this._filtersConnectionSourceData) {
24622462
const filtersSourceData: IDataFilterSourceData = DynamicPropertyHelper.tryGetValueSafe(this._filtersConnectionSourceData);
24632463
if (filtersSourceData) {
2464+
const selectedFilters = dataContext.filters.selectedFilters.concat(filtersSourceData.selectedFilters);
24642465

24652466
// Reset the page number if filters have been updated by the user
2466-
if (!isEqual(filtersSourceData.selectedFilters, this._lastSelectedFilters)) {
2467+
if (!isEqual(selectedFilters, this._lastSelectedFilters)) {
24672468
dataContext.pageNumber = 1;
24682469
this.currentPageNumber = 1;
24692470
}
24702471

2471-
// Use the filter confiugration and then get the corresponding values
2472+
// Use the filter configuration and then get the corresponding values
24722473
dataContext.filters.filtersConfiguration = filtersSourceData.filterConfiguration;
2473-
dataContext.filters.selectedFilters = dataContext.filters.selectedFilters.concat(filtersSourceData.selectedFilters);
2474+
dataContext.filters.selectedFilters = selectedFilters;
24742475
dataContext.filters.filterOperator = filtersSourceData.filterOperator;
24752476
dataContext.filters.instanceId = filtersSourceData.instanceId;
24762477

0 commit comments

Comments
 (0)