|
|
|
@ -127,6 +127,11 @@ export class ToasterInput extends React.Component<IToasterInputProps, {}>
|
|
|
|
|
if (this.props.onClick)
|
|
|
|
|
this.props.onClick(e);
|
|
|
|
|
};
|
|
|
|
|
handleKeyDown = e =>
|
|
|
|
|
{
|
|
|
|
|
if (this.props.onKeyDown)
|
|
|
|
|
this.props.onKeyDown(e, this.errorMsg);
|
|
|
|
|
};
|
|
|
|
|
handleBlur = e =>
|
|
|
|
|
{
|
|
|
|
|
this.hideErrorMsg = true;
|
|
|
|
@ -198,7 +203,7 @@ export class ToasterInput extends React.Component<IToasterInputProps, {}>
|
|
|
|
|
placeholder={props.placeHolder}
|
|
|
|
|
onChange={this.handleChange}
|
|
|
|
|
onClick={this.handleClick}
|
|
|
|
|
onKeyDown={(e) => this.props.onKeyDown(e, this.errorMsg)}
|
|
|
|
|
onKeyDown={this.handleKeyDown}
|
|
|
|
|
onBlur={this.handleBlur}
|
|
|
|
|
maxLength={props.maxLength}
|
|
|
|
|
onFocus={this.handleFocus}
|
|
|
|
|