mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-22 06:29:29 +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 () => {
|
||||
this.topicsToDelete = [];
|
||||
await sleep(300);
|
||||
!this.props.toEdit && this.titleRef?.focus();
|
||||
this.props.toEdit?.type !== 'notebook' && this.titleRef?.focus();
|
||||
}}
|
||||
onRequestClose={this.close}>
|
||||
<TextInput
|
||||
|
||||
Reference in New Issue
Block a user