ItemClick doesn't work with stateReducer inside an iframe
#1,237 建立於 2021年2月13日
倉庫指標
- Star
- (11,761 star)
- PR 合併指標
- (平均合併 6天 9小時) (30 天內合併 5 個 PR)
描述
downshiftversion: 6.1.0nodeversion: codesandboxnpm(oryarn) version: codesandbox
What you did:
I tried to combine the default example of multiple select and that state reducer part to achieve my dropdown not being closed after item click. I also wrap it in an iframe(using react-frame-component), cause I have such setup for my components in the documentation environment.
What happened:

ItemClick change type doesn't trigger stateReducer, which causes menu to close, although InputKeyDownEnter does.
Reproduction repository:
https://codesandbox.io/s/gallant-meadow-660h4?file=/src/index.js
Problem description:
stateReducer doesn't fire with useCombobox.stateChangeTypes.ItemClick inside an iframe
Suggested solution: I could implement the fix with some advise help. Do you have any idea, what causes this?