(e)
| 166 | }, |
| 167 | onClick, |
| 168 | onPress(e) { |
| 169 | if (e.pointerType === 'keyboard' || e.pointerType === 'virtual') { |
| 170 | e.continuePropagation(); |
| 171 | return; |
| 172 | } |
| 173 | |
| 174 | onPress?.(e); |
| 175 | state.toggle(); |
| 176 | ref.current?.focus(); |
| 177 | |
| 178 | // @ts-expect-error |
| 179 | let {[privateValidationStateProp]: groupValidationState} = props; |
| 180 | |
| 181 | // oxlint-disable-next-line react/react-compiler |
| 182 | let {commitValidation} = groupValidationState ? groupValidationState : validationState; |
| 183 | |
| 184 | commitValidation(); |
| 185 | }, |
| 186 | isDisabled: isDisabled || isReadOnly |
| 187 | }); |
| 188 |
nothing calls this directly
no test coverage detected