Skip to content

Commit f410733

Browse files
authored
Merge pull request wix-incubator#16 from philpettican/bugfix/remove-init-auto-focus-title
15: Removed auto focus on init.
2 parents 6556adf + 8da867d commit f410733

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/RichTextEditor.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -431,6 +431,10 @@ export default class RichTextEditor extends Component {
431431
}
432432

433433
focusTitle() {
434+
if (this.props.hiddenTitle) {
435+
return;
436+
}
437+
434438
this._sendAction(actions.focusTitle);
435439
}
436440

src/assets/editor.html

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -921,8 +921,6 @@
921921
whenPastingInsertAsPlainText('zss_editor_title');
922922
whenPastingInsertAsPlainText('zss_editor_content');
923923

924-
zss_editor.focusTitle();
925-
926924
setTimeout(function() {
927925
ReactNativeWebView.postMessage(JSON.stringify({type: 'ZSS_INITIALIZED'}))
928926
}, 20);

0 commit comments

Comments
 (0)