using percentage to not hide search when smaller screen

This commit is contained in:
Peter Holmberg 2018-11-28 11:41:40 +01:00
parent 5916f76991
commit 638c04e16b

View File

@ -34,7 +34,7 @@ export default class UnitPicker extends PureComponent<Props> {
const styles = {
...ResetStyles,
menu: () => ({
maxHeight: '500px',
maxHeight: '75%',
overflow: 'scroll',
}),
menuList: () =>
@ -54,6 +54,7 @@ export default class UnitPicker extends PureComponent<Props> {
className="width-20 gf-form-input--form-dropdown"
defaultValue={value}
isSearchable={true}
menuShouldScrollIntoView={false}
options={groupOptions}
placeholder="Choose"
onChange={onSelected}