Skip to content

Commit

Permalink
default spellCheck=false in BasePicker (#7301)
Browse files Browse the repository at this point in the history
* make spellCheck defaults to false in BasePicker

* rush change

* updated snapshots

* allowed inputProps to overwrite spellCheck
  • Loading branch information
yumikohey authored and joschect committed Dec 6, 2018
1 parent 0492281 commit 2692f4a
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"changes": [
{
"packageName": "office-ui-fabric-react",
"comment": "spellCheck defaults to false in BasePicker",
"type": "patch"
}
],
"packageName": "office-ui-fabric-react",
"email": "[email protected]"
}
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ exports[`Component Examples renders PeoplePicker.Types.Example.tsx correctly 1`]
onInput={[Function]}
onKeyDown={[Function]}
role="combobox"
spellCheck={false}
value=""
/>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,7 @@ exports[`Component Examples renders TagPicker.Basic.Example.tsx correctly 1`] =
onInput={[Function]}
onKeyDown={[Function]}
role="combobox"
spellCheck={false}
value=""
/>
</div>
Expand Down Expand Up @@ -268,6 +269,7 @@ exports[`Component Examples renders TagPicker.Basic.Example.tsx correctly 1`] =
onInput={[Function]}
onKeyDown={[Function]}
role="combobox"
spellCheck={false}
value=""
/>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,7 @@ export class BasePicker<T, P extends IBasePickerProps<T>> extends BaseComponent<
</span>
{this.canAddItems() && (
<Autofill
spellCheck={false}
{...inputProps as any}
className={css('ms-BasePicker-input', styles.pickerInput, inputProps && inputProps.className)}
ref={this.input}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ exports[`Pickers BasePicker renders BasePicker correctly 1`] = `
onInput={[Function]}
onKeyDown={[Function]}
role="combobox"
spellCheck={false}
value=""
/>
</div>
Expand Down Expand Up @@ -112,6 +113,7 @@ exports[`Pickers BasePicker renders BasePicker with inputProps supply classnames
onKeyDown={[Function]}
placeholder="Bitte einen Benutzer angeben..."
role="combobox"
spellCheck={false}
value=""
/>
</div>
Expand Down Expand Up @@ -171,6 +173,7 @@ exports[`Pickers TagPicker renders TagPicker correctly 1`] = `
onInput={[Function]}
onKeyDown={[Function]}
role="combobox"
spellCheck={false}
value=""
/>
</div>
Expand Down

0 comments on commit 2692f4a

Please sign in to comment.