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

cascader showSearch放在form使用时双击或者搜索时会显示浏览器的提示字符 #3350

Closed
lanll opened this issue Oct 10, 2016 · 3 comments

Comments

@lanll
Copy link

lanll commented Oct 10, 2016

`const { Form,Cascader,Roe,Col } = antd;
const FormItem = Form.Item;

const options = [{
value: 'zhejiang',
label: 'Zhejiang',
children: [{
value: 'hangzhou',
label: 'Hangzhou',
children: [{
value: 'xihu',
label: 'West Lake',
}],
}],
}, {
value: 'jiangsu',
label: 'Jiangsu',
children: [{
value: 'nanjing',
label: 'Nanjing',
children: [{
value: 'zhonghuamen',
label: 'Zhong Hua men',
}],
}],
}];

class App extends React.Component {
render() {
const {getFieldDecorator}= this.props.form;
return (




{getFieldDecorator('cantonIds', {
})(

)}

    </FormItem>

    </Form>
    <Cascader expandTrigger="hover" options={options} showSearch/>
    </div>
);

}
}

App = Form.create()(App);
ReactDOM.render(, document.getElementById('container'));`

上述为演示代码,

现象:
image
预期:
image

@afc163
Copy link
Member

afc163 commented Oct 10, 2016

貌似是 autoComplete 没关,来个 PR 如何?

@lanll
Copy link
Author

lanll commented Oct 10, 2016

最糟糕的情况是自动提示的掩盖了数据。autoComplete如何关闭
image

@afc163 afc163 closed this as completed in 4936bc3 Oct 12, 2016
@lock
Copy link

lock bot commented May 3, 2018

This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread.

@lock lock bot locked as resolved and limited conversation to collaborators May 3, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants