Skip to content

Commit

Permalink
turned off auto complete
Browse files Browse the repository at this point in the history
  • Loading branch information
oosthoek committed Oct 10, 2016
1 parent b6386ea commit 1ca960a
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 6 deletions.
1 change: 1 addition & 0 deletions dist/Draft.js
Original file line number Diff line number Diff line change
Expand Up @@ -6036,6 +6036,7 @@ var Draft =
'aria-owns': readOnly ? null : this.props.ariaOwneeID,
className: cx('public/DraftEditor/content'),
contentEditable: !readOnly,
autoComplete: "off",
'data-testid': this.props.webDriverTestID,
onBeforeInput: this._onBeforeInput,
onBlur: this._onBlur,
Expand Down
8 changes: 4 additions & 4 deletions dist/Draft.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/DraftEditor.react.js
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ var DraftEditor = function (_React$Component) {
'aria-owns': readOnly ? null : this.props.ariaOwneeID,
className: cx('public/DraftEditor/content'),
contentEditable: !readOnly,
autoComplete: 'off',
autoComplete: "off",
'data-testid': this.props.webDriverTestID,
onBeforeInput: this._onBeforeInput,
onBlur: this._onBlur,
Expand Down
2 changes: 1 addition & 1 deletion lib/DraftEditor.react.js.flow
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ class DraftEditor extends React.Component {
return <div className={rootClass}>
{this._renderPlaceholder()}
<div className={cx('DraftEditor/editorContainer')} key={'editor' + this.state.containerKey} ref="editorContainer">
<div aria-activedescendant={readOnly ? null : this.props.ariaActiveDescendantID} aria-autocomplete={readOnly ? null : this.props.ariaAutoComplete} aria-describedby={this._showPlaceholder() ? this._placeholderAccessibilityID : null} aria-expanded={readOnly ? null : this.props.ariaExpanded} aria-haspopup={readOnly ? null : this.props.ariaHasPopup} aria-label={this.props.ariaLabel} aria-owns={readOnly ? null : this.props.ariaOwneeID} className={cx('public/DraftEditor/content')} contentEditable={!readOnly} data-testid={this.props.webDriverTestID} onBeforeInput={this._onBeforeInput} onBlur={this._onBlur} onCompositionEnd={this._onCompositionEnd} onCompositionStart={this._onCompositionStart} onCopy={this._onCopy} onCut={this._onCut} onDragEnd={this._onDragEnd} onDragEnter={this.onDragEnter} onDragLeave={this.onDragLeave} onDragOver={this._onDragOver} onDragStart={this._onDragStart} onDrop={this._onDrop} onFocus={this._onFocus} onInput={this._onInput} onKeyDown={this._onKeyDown} onKeyPress={this._onKeyPress} onKeyUp={this._onKeyUp} onMouseUp={this._onMouseUp} onPaste={this._onPaste} onSelect={this._onSelect} ref="editor" role={readOnly ? null : this.props.role || 'textbox'} spellCheck={allowSpellCheck && this.props.spellCheck} style={contentStyle} suppressContentEditableWarning tabIndex={this.props.tabIndex}>
<div aria-activedescendant={readOnly ? null : this.props.ariaActiveDescendantID} aria-autocomplete={readOnly ? null : this.props.ariaAutoComplete} aria-describedby={this._showPlaceholder() ? this._placeholderAccessibilityID : null} aria-expanded={readOnly ? null : this.props.ariaExpanded} aria-haspopup={readOnly ? null : this.props.ariaHasPopup} aria-label={this.props.ariaLabel} aria-owns={readOnly ? null : this.props.ariaOwneeID} className={cx('public/DraftEditor/content')} contentEditable={!readOnly} autoComplete={"off"} data-testid={this.props.webDriverTestID} onBeforeInput={this._onBeforeInput} onBlur={this._onBlur} onCompositionEnd={this._onCompositionEnd} onCompositionStart={this._onCompositionStart} onCopy={this._onCopy} onCut={this._onCut} onDragEnd={this._onDragEnd} onDragEnter={this.onDragEnter} onDragLeave={this.onDragLeave} onDragOver={this._onDragOver} onDragStart={this._onDragStart} onDrop={this._onDrop} onFocus={this._onFocus} onInput={this._onInput} onKeyDown={this._onKeyDown} onKeyPress={this._onKeyPress} onKeyUp={this._onKeyUp} onMouseUp={this._onMouseUp} onPaste={this._onPaste} onSelect={this._onSelect} ref="editor" role={readOnly ? null : this.props.role || 'textbox'} spellCheck={allowSpellCheck && this.props.spellCheck} style={contentStyle} suppressContentEditableWarning tabIndex={this.props.tabIndex}>
<DraftEditorContents blockRenderMap={this.props.blockRenderMap} blockRendererFn={this.props.blockRendererFn} blockStyleFn={this.props.blockStyleFn} customStyleMap={{ ...DefaultDraftInlineStyle, ...this.props.customStyleMap }} customStyleFn={this.props.customStyleFn} editorKey={this._editorKey} editorState={this.props.editorState} />
</div>
</div>
Expand Down
1 change: 1 addition & 0 deletions src/component/base/DraftEditor.react.js
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,7 @@ class DraftEditor extends React.Component {
aria-owns={readOnly ? null : this.props.ariaOwneeID}
className={cx('public/DraftEditor/content')}
contentEditable={!readOnly}
autoComplete={"off"}
data-testid={this.props.webDriverTestID}
onBeforeInput={this._onBeforeInput}
onBlur={this._onBlur}
Expand Down

0 comments on commit 1ca960a

Please sign in to comment.