mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-23 15:09:33 +01:00
fix topic dialog not closing
This commit is contained in:
@@ -65,6 +65,7 @@ export class AddTopicDialog extends React.Component {
|
||||
onShow={() => {
|
||||
this.titleRef.current?.focus();
|
||||
}}
|
||||
statusBarTranslucent={false}
|
||||
visible={true}
|
||||
onRequestClose={this.close}>
|
||||
<View
|
||||
@@ -117,7 +118,12 @@ export class AddTopicDialog extends React.Component {
|
||||
|
||||
<DialogButtons
|
||||
positiveTitle={toEdit ? 'Save' : 'Add'}
|
||||
onPressNegative={this.close}
|
||||
onPressNegative={() => {
|
||||
this.title = null;
|
||||
this.setState({
|
||||
visible: false,
|
||||
});
|
||||
}}
|
||||
onPressPositive={this.addNewTopic}
|
||||
/>
|
||||
</View>
|
||||
|
||||
Reference in New Issue
Block a user