瀏覽代碼

单选组件下拉项可和名称相同

zhouna 6 年之前
父節點
當前提交
1e57bc5dc0
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/components/RadioDrop/index.jsx

+ 1 - 1
src/components/RadioDrop/index.jsx

@@ -40,7 +40,7 @@ class RadioDrop extends Component{
     if(hideTag){
       return style['no-tag'];
     }
-    if(value&&value!=placeholder){
+    if(value){
       return style['selected-tag'];
     }
     return style['tag'];