Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[BugFix] Hide modal through onDismiss callback
**Current behavior**: When user presses outside of modal, it gets dismissed internally regardless of whether app logic wants to close the modal and then user provided callback is invoked. This results in flicker - internal close and then immediate open due to `visible` state still `true` on modal if the app logic doesn't dismiss the modal immediately. Flicker is also caused if there are frame delays between user callback being invoked and `visible` state being set **New Behavior**: Initiate dismiss modal only when app logic sets `visible` state to false **Steps to reproduce bug**: Pass empty function as `onDismiss` callback and press outside of modal - modal flickers
- Loading branch information