Fix value in Dropdown focusOnMount prop

The currently supported values are 'firstElement' | boolean
Based on the JS doc and my testing, we need to use true
to hide the popup on click elsewhere or by ESC.
[MAILPOET-5714]
This commit is contained in:
Rostislav Wolny
2023-12-11 14:27:15 +01:00
committed by Aschepikov
parent b9475c43b8
commit cb7ae2a442

View File

@ -33,7 +33,7 @@ export function FiltersChip({ step, strings }: Props): JSX.Element | null {
return (
<Dropdown
focusOnMount="container"
focusOnMount
popoverProps={{ offset: 6 }}
renderToggle={({ onToggle, isOpen }) => (
<Chip