GeekyAnts / GeekyAnts/NativeBase
Can't close AlertDialog by overlay click when `accessibilityLabel` or `testID` is set
Open
bug
triage
v3
- Dominant language
- TypeScript
- Stars
- 20.4k
- Forks
- 2.4k
- PR merge metrics
- No merged PRs in 30d
Description
### Description
When the AlertDialog is provided with the prop `closeOnOverlayClick === true`, it is expected that clicking the AlertDialog overlay would close the dialog. This seems to happen when `accessibilityLabel` or `testID` is set. When neither is set `closeOnOverlayClick` works as expected.
### CodeSandbox/Snack link
https://snack.expo.dev/@larrya/alertdialog-bug
### Steps to reproduce
1. Open the AlertDialog
2. Click overlay
### NativeBase Version
3.4.8
### Platform
- [X] Android
- [ ] CRA
- [ ] Expo
- [ ] iOS
- [ ] Next
### Other Platform
_No response_
### Additional Information
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.