Skip to content

Commit

Permalink
Fix [Filter] Tag list doesnt scroll in Filter by dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
Taras-Hlukhovetskyi committed Jan 3, 2024
1 parent a755cf1 commit 0f66a5e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/common/FormTagFilter/formTagFilters.scss
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
&__dropdown {
width: 100%;
max-height: 400px;
align-items: normal;
overflow-y: auto;
background-color: $white;
border: $primaryBorder;
Expand Down
7 changes: 6 additions & 1 deletion src/components/FilterMenuModal/FilterMenuModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,12 @@ const FilterMenuModal = ({
}, [dispatch, filtersData, filterMenuName, values])

const hideFiltersWizard = useCallback(event => {
if (!event.target.closest('.filters-button') && !event.target.closest('.filters-wizard')) {
if (
!event.target.closest('.filters-button') &&
!event.target.closest('.filters-wizard') &&
!event.target.parentNode.previousElementSibling?.classList?.contains('filters-wizard') &&
!event.target.parentNode.nextElementSibling?.classList?.contains('filters-wizard')
) {
setFiltersWizardIsShown(false)
}
}, [])
Expand Down

0 comments on commit 0f66a5e

Please sign in to comment.