Skip to content

升级到 "version": "6.7.2" 后 onFocus 不管用 #161

@guissy

Description

@guissy
onOuterFocus: function onOuterFocus(e) {
    if (e.target === this.getInputDOMNode()) {
       return; // 这里就返回不执行 props.onFocus() 了
    }
    this.clearBlurTime();
    this._focused = true;
    this.updateFocusClassName();
    this.props.onFocus();
}

我是使用 antd 2.7.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions