Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

InputItem Unknown event handler property onExtraClick. It will be ignored. #2565

Closed
1 task
yaoyuande opened this issue May 22, 2018 · 7 comments
Closed
1 task
Labels

Comments

@yaoyuande
Copy link

  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

2.1.9

Environment

win10 chrome

Reproduction link

http://new-issue.ant.design/?repo=ant-design-mobile

Steps to reproduce

handleClick = () => {
this.customFocusInst.focus();
}
render() {
const { login, loading } = this.props;
// const { getFieldProps } = this.props.form;

return (
  <div className={styles.box}>
    <h3 className={styles.title}>图片直播品控</h3>
    <div className={styles.form}>
      <List renderHeader={() => 'Customize to focus'}>
        <InputItem
          clear
          placeholder="auto focus"
          ref={el => this.autoFocusInst = el}
        >标题</InputItem>
        <InputItem
          clear
          placeholder="click the button below to focus"
          ref={el => this.customFocusInst = el}
        >标题</InputItem>
        <List.Item>
          <div
            style={{ width: '100%', color: '#108ee9', textAlign: 'center' }}
            onClick={this.handleClick}
          >
            click to focus
          </div>
        </List.Item>
      </List>
    </div>
  </div>
);

}

运行后提示:
Unknown event handler property onExtraClick. It will be ignored.
Unknown event handler property onErrorClick. It will be ignored.
Unknown event handler property onVirtualKeyboardConfirm. It will be ignored.

What is expected?

期望别报错

What is actually happening?

运行后提示:
Unknown event handler property onExtraClick. It will be ignored.
Unknown event handler property onErrorClick. It will be ignored.
Unknown event handler property onVirtualKeyboardConfirm. It will be ignored.

@yaoyuande
Copy link
Author

指定 type为 money 就没有下边的警告了,有别的解决方法吗?

@qiuziz
Copy link

qiuziz commented May 24, 2018

这个问题怎么解决啊@warmhug

@Dan-0216
Copy link

I met the same problem, but I reinstall my node_modules just now ,the problems still here, what should I do? @KgTong @warmhug @yaoyuande
index.js:2177 Warning: Unknown event handler property onExtraClick. It will be ignored. in input (created by Input) in Input (created by InputItem) in div (created by InputItem) in div (created by InputItem) in div (created by InputItem) in InputItem (at login.jsx:46) in div (created by List) in div (created by List) in List (at login.jsx:44) in div (created by WingBlank) in WingBlank (at login.jsx:43) in div (at login.jsx:38) in Login (created by Connect(Login)) in Connect(Login) (created by Route) in Route (at index.js:39) in Switch (at index.js:36) in div (at index.js:34) in Router (created by BrowserRouter) in BrowserRouter (at index.js:33) in Provider (at index.js:32)

@KgTong
Copy link
Contributor

KgTong commented May 26, 2018

We have fixed this problem, and will release a new version in the end of this month

@yaoyuande
Copy link
Author

yaoyuande commented May 28, 2018

@KgTong This problem still recur in 2.1.10

@KgTong
Copy link
Contributor

KgTong commented May 28, 2018

not release yet

@Meyond
Copy link

Meyond commented Jun 1, 2018

InputItem onChange triggers the next element onClick

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants