Skip to content

Commit

Permalink
Merge pull request #191 from BouyguesTelecom/fix/select-mangled
Browse files Browse the repository at this point in the history
fix class of select modal
  • Loading branch information
JulienMora authored Nov 8, 2024
2 parents bad01ff + 57eb042 commit 9480ebf
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
4 changes: 2 additions & 2 deletions examples/react-template/screens/Select.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Button, Divider, Spacer, Title, TitleLevels } from '@trilogy-ds/react'
import { IconName, Section, Select, SelectOption } from '@trilogy-ds/react/components'
import { TitleLevels } from '@trilogy-ds/react'
import { Button, Divider, IconName, Section, Select, SelectOption, Spacer, Title } from '@trilogy-ds/react/components'
import * as React from 'react'

export const SelectView = (): JSX.Element => {
Expand Down
10 changes: 9 additions & 1 deletion packages/react/components/select/web/SelectDynamic.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,15 @@ const SelectDynamic = ({
}, [focused, focusedIndex, children, isChecked])

const modal = useMemo(
() => <div role='presentation' className='select-trilogy_modal_open' onClick={() => setIsFocused(false)} />,
() => (
<div
role='presentation'
className={hashClass(styled, clsx('select-trilogy_modal_open'))}
onClick={() => {
setIsFocused(false)
}}
/>
),
[],
)

Expand Down

0 comments on commit 9480ebf

Please sign in to comment.