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={() => {
|
onShow={() => {
|
||||||
this.titleRef.current?.focus();
|
this.titleRef.current?.focus();
|
||||||
}}
|
}}
|
||||||
|
statusBarTranslucent={false}
|
||||||
visible={true}
|
visible={true}
|
||||||
onRequestClose={this.close}>
|
onRequestClose={this.close}>
|
||||||
<View
|
<View
|
||||||
@@ -117,7 +118,12 @@ export class AddTopicDialog extends React.Component {
|
|||||||
|
|
||||||
<DialogButtons
|
<DialogButtons
|
||||||
positiveTitle={toEdit ? 'Save' : 'Add'}
|
positiveTitle={toEdit ? 'Save' : 'Add'}
|
||||||
onPressNegative={this.close}
|
onPressNegative={() => {
|
||||||
|
this.title = null;
|
||||||
|
this.setState({
|
||||||
|
visible: false,
|
||||||
|
});
|
||||||
|
}}
|
||||||
onPressPositive={this.addNewTopic}
|
onPressPositive={this.addNewTopic}
|
||||||
/>
|
/>
|
||||||
</View>
|
</View>
|
||||||
|
|||||||
Reference in New Issue
Block a user