Skip to content

Commit 3b811c8

Browse files
authored
Merge pull request #719 from gautamdsheth/bugfix/searchBox-change
Changed from Textfield to Searchbox in collectiondataviewer
2 parents 885bdc6 + 3d50e4f commit 3b811c8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/controls/fieldCollectionData/collectionDataViewer/CollectionDataViewer.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { Icon } from 'office-ui-fabric-react/lib/components/Icon';
77
import * as strings from 'ControlStrings';
88
import { cloneDeep, sortBy, isEmpty, findIndex } from '@microsoft/sp-lodash-subset';
99
import { Pagination } from '../../pagination';
10-
import { TextField } from 'office-ui-fabric-react/lib/TextField';
10+
import { SearchBox } from 'office-ui-fabric-react/lib/components/SearchBox';
1111
import { Guid } from '@microsoft/sp-core-library';
1212

1313
export class CollectionDataViewer extends React.Component<ICollectionDataViewerProps, ICollectionDataViewerState> {
@@ -329,7 +329,7 @@ export class CollectionDataViewer extends React.Component<ICollectionDataViewerP
329329
<div>
330330
{
331331
this.props.executeFiltering &&
332-
<TextField onChanged={(newValue) => { this.setState({ searchFilter: newValue, currentPage: 1 }); }} placeholder={strings.CollectionDataSearch} className="FieldCollectionData__panel__search-box"/>
332+
<SearchBox onChanged={(newValue) => { this.setState({ searchFilter: newValue, currentPage: 1 }); }} placeholder={strings.CollectionDataSearch} className="FieldCollectionData__panel__search-box"/>
333333
}
334334
<div className={`FieldCollectionData__panel__table ${styles.table} ${this.props.tableClassName || ""}`}>
335335
<div className={`FieldCollectionData__panel__table-head ${styles.tableRow} ${styles.tableHead}`}>

0 commit comments

Comments
 (0)