Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

fix input value not cleared on closing dialog

ammarahm-ed75284c83b6a4
diff --git a/apps/mobile/src/components/AddNotebookDialog/index.js b/apps/mobile/src/components/AddNotebookDialog/index.js
index 59ffc2161..606ebb7e0 100644
--- a/apps/mobile/src/components/AddNotebookDialog/index.js
+++ b/apps/mobile/src/components/AddNotebookDialog/index.js
@@ -119,6 +119,7 @@ export class AddNotebookDialog extends React.Component {
this.currentInputValue.trim().length !== 0
) {
t.push(this.currentInputValue);
+ this.currentInputValue = null;
}
if (id) {
await db.notebooks.add({