@@ -184,7 +184,7 @@ module.exports = React.createClass( {
184184 return (
185185 ! this . props . disabled && this . state . isOpen ?
186186 < div
187- className = "slds-dropdown slds-dropdown--left slds-dropdown--small slds-dropdown-- menu"
187+ className = "slds-dropdown slds-dropdown--left slds-dropdown--menu"
188188 style = { { maxHeight :'20em' } } >
189189 { this . getPopoverContent ( ) }
190190 </ div > :null
@@ -216,33 +216,6 @@ module.exports = React.createClass( {
216216 } ) ;
217217 } ,
218218
219- render ( ) {
220- return (
221- < div className = { "slds-form-element slds-theme--" + this . props . theme } >
222- < div className = { "slds-picklist slds-theme--" + this . props . theme } >
223- < button
224- id = { this . state . triggerId }
225- ref = "triggerbutton"
226- className = { 'slds-button slds-button--neutral slds-picklist__label ' + this . props . className }
227- aria-haspopup = "true"
228- onBlur = { this . handleBlur }
229- onFocus = { this . handleFocus }
230- onClick = { this . handleClick }
231- onMouseDown = { this . handleMouseDown }
232- tabIndex = { this . state . isOpen ?- 1 :0 }
233- onKeyDown = { this . handleKeyDown } >
234- < span className = "slds-truncate" > { this . getPlaceholder ( ) } </ span >
235- < Icon name = "down" category = "utility" />
236- </ button >
237-
238- { this . props . modal ?this . getModalPopover ( ) :this . getSimplePopover ( ) }
239-
240- </ div >
241-
242- </ div >
243- ) ;
244- } ,
245-
246219 componentDidUpdate ( prevProps , prevState ) {
247220
248221 if ( this . state . lastBlurredTimeStamp !== prevState . lastBlurredTimeStamp ) {
@@ -274,7 +247,33 @@ module.exports = React.createClass( {
274247
275248 } ,
276249
250+ render ( ) {
251+ return (
252+ < div className = "slds-picklist" aria-expanded = { this . state . isOpen } >
253+ < button
254+ id = { this . state . triggerId }
255+ ref = "triggerbutton"
256+ className = "slds-button slds-button--neutral slds-picklist__label"
257+ aria-haspopup = "true"
258+ onBlur = { this . handleBlur }
259+ onFocus = { this . handleFocus }
260+ onClick = { this . handleClick }
261+ onMouseDown = { this . handleMouseDown }
262+ tabIndex = { this . state . isOpen ?- 1 :0 }
263+ onKeyDown = { this . handleKeyDown } >
264+ < span className = "slds-truncate" > { this . getPlaceholder ( ) } </ span >
265+ < Icon name = "down" category = "utility" />
266+ </ button >
267+
268+ { this . props . modal ?this . getModalPopover ( ) :this . getSimplePopover ( ) }
269+
270+ </ div >
271+ ) ;
272+ } ,
273+
274+
277275} ) ;
278276
279277module . exports . ListItem = ListItem ;
280278module . exports . ListItemLabel = ListItemLabel ;
279+
0 commit comments