Skip to content

Commit 130629b

Browse files
authored
Fix issue with Select integration testing (#501)
1 parent 8e4f074 commit 130629b

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

packages/components/src/Form/Inputs/Combobox/state.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ export const stateChart: StateChart = {
147147
[ComboboxActionType.BLUR]: ComboboxState.IDLE,
148148
[ComboboxActionType.ESCAPE]: ComboboxState.IDLE,
149149
[ComboboxActionType.NAVIGATE]: ComboboxState.NAVIGATING,
150+
[ComboboxActionType.SELECT_WITH_CLICK]: ComboboxState.IDLE,
150151
[ComboboxActionType.SELECT_WITH_KEYBOARD]: ComboboxState.IDLE,
151152
[ComboboxActionType.SELECT_SILENT]: ComboboxState.IDLE,
152153
[ComboboxActionType.INTERACT]: ComboboxState.INTERACTING,

packages/playground/src/Select/SelectDemo.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ const options = [
3737
{ label: 'Kiwis', value: '5' },
3838
]
3939

40-
function SelectContent() {
40+
export function SelectContent() {
4141
const [value, setValue] = React.useState()
4242
const [searchTerm, setSearchTerm] = React.useState('')
4343
const handleClick = (e: MouseEvent<HTMLButtonElement>) => {

packages/playground/src/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,13 @@ import { GlobalStyle } from '@looker/components'
2424
import { theme } from '@looker/design-tokens'
2525
import { ThemeProvider } from 'styled-components'
2626

27-
import { InputChipsDemo } from './Form/InputChipsDemo'
27+
import { SelectContent } from './Select/SelectDemo'
2828

2929
const App: React.FC = () => {
3030
return (
3131
<ThemeProvider theme={theme}>
3232
<GlobalStyle />
33-
<InputChipsDemo />
33+
<SelectContent />
3434
</ThemeProvider>
3535
)
3636
}

0 commit comments

Comments
 (0)