Skip to content

Commit

Permalink
fix: fix dialog closes even if you tap inside. fixes #809
Browse files Browse the repository at this point in the history
  • Loading branch information
satya164 committed Feb 4, 2019
1 parent 5ac1daf commit 6415ba5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/components/Modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -165,9 +165,8 @@ class Modal extends React.Component<Props, State> {
]}
/>
</TouchableWithoutFeedback>
<View style={styles.wrapper}>
<View pointerEvents="box-none" style={styles.wrapper}>
<Surface
pointerEvents="box-none"
style={[
{ opacity: this.state.opacity },
styles.content,
Expand Down
2 changes: 1 addition & 1 deletion src/components/ToggleButton/ToggleButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ class ToggleButton extends React.Component<Props> {
<IconButton
borderless={false}
icon={icon}
onPress={(e) => {
onPress={e => {
if (onPress) {
onPress(e);
}
Expand Down

0 comments on commit 6415ba5

Please sign in to comment.