From fe0ead041a4ab4095af8712b997f7e9bfb5a1273 Mon Sep 17 00:00:00 2001 From: afc163 Date: Thu, 23 Jul 2015 11:13:20 +0800 Subject: [PATCH] update combobox demo --- components/select/demo/combobox.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/select/demo/combobox.md b/components/select/demo/combobox.md index eb54cb013b..dd8a9fb1de 100644 --- a/components/select/demo/combobox.md +++ b/components/select/demo/combobox.md @@ -2,7 +2,7 @@ - order: 4 -类似账号注册表单输入框的自动完成功能。 +输入框自动完成功能,下面是一个账号注册表单的例子。 --- @@ -19,7 +19,7 @@ var Test = React.createClass({ }, handleChange(value) { var options; - if (!value) { + if (!value || value.indexOf('@') >= 0) { options = []; } else { options = ['gmail.com', '163.com', 'qq.com'].map(function(domain) {