mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-22 22:49:45 +01:00
fix title is not focused on open dialog
This commit is contained in:
@@ -272,7 +272,7 @@ export class AddNotebookDialog extends React.Component {
|
|||||||
onShow={async () => {
|
onShow={async () => {
|
||||||
this.topicsToDelete = [];
|
this.topicsToDelete = [];
|
||||||
await sleep(300);
|
await sleep(300);
|
||||||
!this.props.toEdit && this.titleRef?.focus();
|
this.props.toEdit?.type !== 'notebook' && this.titleRef?.focus();
|
||||||
}}
|
}}
|
||||||
onRequestClose={this.close}>
|
onRequestClose={this.close}>
|
||||||
<TextInput
|
<TextInput
|
||||||
|
|||||||
Reference in New Issue
Block a user