mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-22 22:49:45 +01:00
fix add notebook dialog close animation
This commit is contained in:
@@ -88,13 +88,6 @@ export class AddNotebookDialog extends React.Component {
|
|||||||
this.description = null;
|
this.description = null;
|
||||||
this.currentInputValue = null;
|
this.currentInputValue = null;
|
||||||
this.id = null;
|
this.id = null;
|
||||||
this.setState({
|
|
||||||
visible: false,
|
|
||||||
topics: [],
|
|
||||||
descFocused: false,
|
|
||||||
titleFocused: false,
|
|
||||||
editTopic: false
|
|
||||||
});
|
|
||||||
};
|
};
|
||||||
|
|
||||||
onDelete = index => {
|
onDelete = index => {
|
||||||
@@ -269,10 +262,13 @@ export class AddNotebookDialog extends React.Component {
|
|||||||
}}
|
}}
|
||||||
fwdRef={this.actionSheetRef}
|
fwdRef={this.actionSheetRef}
|
||||||
onClose={() => {
|
onClose={() => {
|
||||||
console.log('closing now');
|
|
||||||
this.close();
|
this.close();
|
||||||
this.setState({
|
this.setState({
|
||||||
visible: false
|
visible: false,
|
||||||
|
topics: [],
|
||||||
|
descFocused: false,
|
||||||
|
titleFocused: false,
|
||||||
|
editTopic: false
|
||||||
});
|
});
|
||||||
}}
|
}}
|
||||||
statusBarTranslucent={false}
|
statusBarTranslucent={false}
|
||||||
|
|||||||
Reference in New Issue
Block a user