File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -129,7 +129,8 @@ export class Select extends React.Component {
129129 value : PropTypes . any ,
130130 onChange : PropTypes . func ,
131131 multiple : PropTypes . bool ,
132- allowEmptyValue : PropTypes . bool
132+ allowEmptyValue : PropTypes . bool ,
133+ className : PropTypes . string
133134 }
134135
135136 static defaultProps = {
@@ -142,7 +143,7 @@ export class Select extends React.Component {
142143
143144 let value
144145
145- if ( props . value !== undefined ) {
146+ if ( props . value ) {
146147 value = props . value
147148 } else {
148149 value = props . multiple ? [ "" ] : ""
@@ -178,7 +179,7 @@ export class Select extends React.Component {
178179 let value = this . state . value . toJS ? this . state . value . toJS ( ) : this . state . value
179180
180181 return (
181- < select multiple = { multiple } value = { value } onChange = { this . onChange } >
182+ < select className = { this . props . className } multiple = { multiple } value = { value } onChange = { this . onChange } >
182183 { allowEmptyValue ? < option value = "" > --</ option > : null }
183184 {
184185 allowedValues . map ( function ( item , key ) {
Original file line number Diff line number Diff line change 9797 width : 100% ;
9898 max-width : 340px ;
9999 }
100+
101+ select {
102+ border-width : 1px ;
103+ }
100104}
101105
102106.parameter__name
You can’t perform that action at this time.
0 commit comments