Skip to content
Merged
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"changes": [
{
"packageName": "office-ui-fabric-react",
"comment": "Deprecate SearchBox defaultValue prop.",
"type": "minor"
}
],
"packageName": "office-ui-fabric-react",
"email": "v-jojanz@microsoft.com"
}
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ export class SearchBoxBase extends BaseComponent<ISearchBoxProps, ISearchBoxStat
super(props);

this._warnDeprecations({
'labelText': 'placeholder'
'labelText': 'placeholder',
'defaultValue': 'value'
});

this._latestValue = props.value || '';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ export interface ISearchBoxProps extends React.InputHTMLAttributes<HTMLInputElem

/**
* The default value of the text in the SearchBox, in the case of an uncontrolled component.
* Up till now, this has not been implemented, deprecating. Will re-implement if uncontrolled
* component behavior is implemented.
* @deprecated
*/
defaultValue?: string;

Expand Down