(focusStrategy: FocusStrategy | null = null)
| 252 | props.defaultSelectedKey ?? (props.selectionMode === 'single' ? (initialValue as Key) : null), |
| 253 | focusStrategy, |
| 254 | open(focusStrategy: FocusStrategy | null = null) { |
| 255 | // Don't open if the collection is empty. |
| 256 | if (listState.collection.size !== 0 || props.allowsEmptyCollection) { |
| 257 | setFocusStrategy(focusStrategy); |
| 258 | triggerState.open(); |
| 259 | } |
| 260 | }, |
| 261 | toggle(focusStrategy: FocusStrategy | null = null) { |
| 262 | if (listState.collection.size !== 0 || props.allowsEmptyCollection) { |
| 263 | setFocusStrategy(focusStrategy); |
no test coverage detected