update combobox demo

This commit is contained in:
afc163 2015-07-23 11:13:20 +08:00
parent 0611570caa
commit fe0ead041a

View File

@ -2,7 +2,7 @@
- order: 4 - order: 4
类似账号注册表单输入框自动完成功能。 输入框自动完成功能,下面是一个账号注册表单的例子
--- ---
@ -19,7 +19,7 @@ var Test = React.createClass({
}, },
handleChange(value) { handleChange(value) {
var options; var options;
if (!value) { if (!value || value.indexOf('@') >= 0) {
options = []; options = [];
} else { } else {
options = ['gmail.com', '163.com', 'qq.com'].map(function(domain) { options = ['gmail.com', '163.com', 'qq.com'].map(function(domain) {