Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
className={classNames(
{
[styles['select__overlay']]: showOverlay,
[styles['select--autowidth']]: !fullwidth,
[styles['select--disabled']]: disabled,
[styles['select--fullwidth']]: fullwidth
},
className
)}
// react-select temporarily adds className to its innerComponents
// but this behavior will soon be removed. For the moment, we
// cancel it by setting it to empty string
// needsclick is added only on iOS App since fastclik tries to handle
// the click and catch the event.
classNamePrefix={
isIOSApp()
? `needsclick ${classNamePrefix ? classNamePrefix : ''}`
: classNamePrefix
? classNamePrefix
: ''
}
selectProps={{ name }}
/>
)
}
}
constructor(props) {
super(props)
this.topmost = new TopMost(this.getScrollingElement)
this.handleRefRow = this.handleRefRow.bind(this)
this.handleScroll = (isIOSApp() ? debounce : throttle)(
this.handleScroll.bind(this),
300,
{ leading: false, trailing: true }
)
}