diff --git a/frontend/src/Components/Form/AutoSuggestInput.js b/frontend/src/Components/Form/AutoSuggestInput.js index 34ec7530b..42a24e4d7 100644 --- a/frontend/src/Components/Form/AutoSuggestInput.js +++ b/frontend/src/Components/Form/AutoSuggestInput.js @@ -104,7 +104,7 @@ class AutoSuggestInput extends Component { const windowHeight = window.innerHeight; - if ((/^botton/).test(data.placement)) { + if ((/^bottom/).test(data.placement)) { data.styles.maxHeight = windowHeight - bottom; } else { data.styles.maxHeight = top; diff --git a/frontend/src/Components/Form/EnhancedSelectInput.js b/frontend/src/Components/Form/EnhancedSelectInput.js index cc4215025..a85b9ef6c 100644 --- a/frontend/src/Components/Form/EnhancedSelectInput.js +++ b/frontend/src/Components/Form/EnhancedSelectInput.js @@ -144,7 +144,7 @@ class EnhancedSelectInput extends Component { const windowHeight = window.innerHeight; - if ((/^botton/).test(data.placement)) { + if ((/^bottom/).test(data.placement)) { data.styles.maxHeight = windowHeight - bottom; } else { data.styles.maxHeight = top;