Skip to content

Commit

Permalink
Fixed #321
Browse files Browse the repository at this point in the history
  • Loading branch information
Merve7 committed Feb 28, 2018
1 parent b9bcb81 commit e5fa7f3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/inputmask/InputMask.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ export class InputMask extends Component {
disabled: false,
readonly: false,
name: null,
required: false,
onComplete: null,
onChange: null
}
Expand All @@ -44,6 +45,7 @@ export class InputMask extends Component {
disabled: PropTypes.bool,
readonly: PropTypes.bool,
name: PropTypes.string,
required: PropTypes.bool,
onComplete: PropTypes.func,
onChange: PropTypes.func
}
Expand Down Expand Up @@ -509,7 +511,7 @@ export class InputMask extends Component {
<InputText id={this.props.id} ref={(el) => this.input = ReactDOM.findDOMNode(el)} type={this.props.type} name={this.props.name} style={this.props.style} className={this.props.className} placeholder={this.props.placeholder}
size={this.props.size} maxLength={this.props.maxlength} tabIndex={this.props.tabindex} disabled={this.props.disabled} readOnly={this.props.readonly}
onFocus={this.onFocus.bind(this)} onBlur={this.onBlur.bind(this)} onKeyDown={this.onKeyDown.bind(this)} onKeyPress={this.onKeyPress.bind(this)}
onInput={this.onInput.bind(this)} onPaste={this.handleInputChange.bind(this)} />
onInput={this.onInput.bind(this)} onPaste={this.handleInputChange.bind(this)} required={this.props.required}/>
);
}

Expand Down
6 changes: 6 additions & 0 deletions src/showcase/inputmask/InputMaskDemo.js
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,12 @@ constructor() {
<td>false</td>
<td>When present, it specifies that an input field is read-only.</td>
</tr>
<tr>
<td>required</td>
<td>boolean</td>
<td>false</td>
<td>When present, it specifies that the element must be filled out before submitting the form.</td>
</tr>
<tr>
<td>name</td>
<td>string</td>
Expand Down

0 comments on commit e5fa7f3

Please sign in to comment.