Преглед изворни кода

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

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'];