(focusStrategy: FocusStrategy | null = null)
| 260 | } |
| 261 | }, |
| 262 | toggle(focusStrategy: FocusStrategy | null = null) { |
| 263 | if (listState.collection.size !== 0 || props.allowsEmptyCollection) { |
| 264 | setFocusStrategy(focusStrategy); |
| 265 | triggerState.toggle(); |
| 266 | } |
| 267 | }, |
| 268 | isFocused, |
| 269 | setFocused |
| 270 | }; |