From fff589bbb4f1d0d6779a8ec9397a2a539153dc0b Mon Sep 17 00:00:00 2001 From: Rafael Taranto Date: Mon, 28 Apr 2025 07:20:15 +0100 Subject: [PATCH] fix: proper popper usage --- new-lamassu-admin/src/components/Popper.jsx | 8 +------- .../src/components/inputs/base/Autocomplete.jsx | 3 +-- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/new-lamassu-admin/src/components/Popper.jsx b/new-lamassu-admin/src/components/Popper.jsx index 6dc22225..75159a0a 100644 --- a/new-lamassu-admin/src/components/Popper.jsx +++ b/new-lamassu-admin/src/components/Popper.jsx @@ -132,7 +132,7 @@ const Popover = ({ }, { name: 'preventOverflow', - enabled: R.defaultTo(true, props.preventOverflow), + enabled: true, options: { rootBoundary: 'scrollParent' } @@ -159,12 +159,6 @@ const Popover = ({ } ] - if (props.preventOverflow === false) { - modifiers.hide = { - enabled: false - } - } - return ( <> ) - console.log('props.warningMessage: ', props) return (
  • - ); + ) } export default Autocomplete