Handle cancel

This commit is contained in:
Julia Friesel
2018-08-27 11:03:52 +02:00
parent f564eab7d0
commit a6d082dffc
+4 -1
View File
@@ -119,7 +119,10 @@ class TempReminderPicker extends Component {
enabled: true
})
}}
onCancel={() => this.setState({ isTimePickerVisible: false })}
onCancel={() => {
this.setState({ isTimePickerVisible: false })
if (!this.state.time) this.setState({enabled: false})
}}
/>
</View>
)