From e2e65627eee141e53748c0f3c479bfead7adfcd1 Mon Sep 17 00:00:00 2001 From: Bogdan Date: Mon, 19 Jun 2023 14:31:37 +0300 Subject: [PATCH] Fix typo `botton` to `bottom` --- frontend/src/Components/Form/AutoSuggestInput.js | 2 +- frontend/src/Components/Form/EnhancedSelectInput.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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;