A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
fix: Topic is not added on first tap on + (#56)
thecodrr6eb4e78fcb65
diff --git a/apps/web/src/components/dialogs/add-notebook-dialog.js b/apps/web/src/components/dialogs/add-notebook-dialog.jsindex 829e39731..a4d5e09ee 100644--- a/apps/web/src/components/dialogs/add-notebook-dialog.js+++ b/apps/web/src/components/dialogs/add-notebook-dialog.js@@ -101,8 +101,6 @@ export default class AddNotebookDialog extends React.Component {<Flexkey={index.toString()}flexDirection="row"- onFocus={() => this.setState({ focusedInputIndex: index })}- onBlur={() => this.setState({ focusedInputIndex: -1 })}sx={{ marginBottom: 1 }}><Input@@ -112,6 +110,8 @@ export default class AddNotebookDialog extends React.Component {placeholder="Topic name"onFocus={e => {this.lastLength = e.nativeEvent.target.value.length;+ if (this.state.focusedInputIndex === index) return;+ this.setState({ focusedInputIndex: index });}}onChange={e => {const { topics } = this.state;