Skip to content

Commit

Permalink
Refactor #2158
Browse files Browse the repository at this point in the history
  • Loading branch information
mcandu committed Jul 5, 2021
1 parent b7ddbf0 commit f0c29b3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/components/calendar/Calendar.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export class Calendar extends Component {
inputId: null,
inputStyle: null,
inputClassName: null,
inputMode: 'text',
inputMode: null,
required: false,
readOnlyInput: false,
keepInvalid: false,
Expand Down Expand Up @@ -3055,7 +3055,7 @@ export class Calendar extends Component {
return (
<InputText ref={this.inputRef} id={this.props.inputId} name={this.props.name} type="text" className={this.props.inputClassName} style={this.props.inputStyle}
readOnly={this.props.readOnlyInput} disabled={this.props.disabled} required={this.props.required} autoComplete="off" placeholder={this.props.placeholder}
onInput={this.onUserInput} onFocus={this.onInputFocus} onBlur={this.onInputBlur} onKeyDown={this.onInputKeyDown} aria-labelledby={this.props.ariaLabelledBy} inputMode={this.props.inputMode} />
onInput={this.onUserInput} onFocus={this.onInputFocus} onBlur={this.onInputBlur} onKeyDown={this.onInputKeyDown} aria-labelledby={this.props.ariaLabelledBy} inputMode={this.props.inputMode || 'none'} />
);
}

Expand Down
2 changes: 1 addition & 1 deletion src/showcase/calendar/CalendarDoc.js
Original file line number Diff line number Diff line change
Expand Up @@ -838,7 +838,7 @@ const monthNavigatorTemplate = (options) => {
<tr>
<td>inputMode</td>
<td>string</td>
<td>text</td>
<td>null</td>
<td>HTML inputmode attribute of input.</td>
</tr>
<tr>
Expand Down

0 comments on commit f0c29b3

Please sign in to comment.