1200字范文,内容丰富有趣,写作的好帮手!
1200字范文 > 下拉框触发单击事件_Select 点击下拉框触发onSelect / onChange 事件 在该事

下拉框触发单击事件_Select 点击下拉框触发onSelect / onChange 事件 在该事

时间:2020-06-23 13:13:35

相关推荐

下拉框触发单击事件_Select  点击下拉框触发onSelect / onChange 事件  在该事

Environment(required)

antd version:^2.7.1

OS and its version:mac os 10.12.3

Browser and its version:chrome 55.0.2883.95

What did you do? Please provide steps to re-produce your problem.

import React from eact;

import {Select, Input} from antd;

import classNames from classnames;

const Option = Select.Option;

export default class List extends ponent {

constructor(props) {

super(props);

this.state = {

data: [a, , c, d],

};

[

handleSelect,

].map(method => this[method] = this[method].bind(this));

}

handleSelect(value) {

this.setState({key: value});

setTimeout(() => {

this.setState({key: value});

下拉框触发单击事件_Select 点击下拉框触发onSelect / onChange 事件 在该事件中发请求得到结果后setState 这时候下拉框不消失 会重新弹出来。...

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。