!2469 修复:输入框键盘点击报错

pull/2471/head
黄诗津 11 months ago committed by ChenX
parent 17d158585c
commit abde809abb

@ -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}

Loading…
Cancel
Save