Skip to content

Commit

Permalink
Don't focus on L.Illustrate.Textbox automatically when it is added to…
Browse files Browse the repository at this point in the history
… the map. Fixes #7.
  • Loading branch information
justinmanley committed Sep 15, 2014
1 parent fcd6080 commit e044bb5
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion dist/Leaflet.Illustrate.js
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,6 @@ L.Illustrate.Textbox = L.RotatableMarker.extend({

/* Enable typing, text selection, etc. */
this._enableTyping();
textarea.focus();

/* Disable the textarea if the textbox content should not be editable. */
if (!this.options.textEditable) {
Expand Down
1 change: 0 additions & 1 deletion src/core/L.Illustrate.Textbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ L.Illustrate.Textbox = L.RotatableMarker.extend({

/* Enable typing, text selection, etc. */
this._enableTyping();
textarea.focus();

/* Disable the textarea if the textbox content should not be editable. */
if (!this.options.textEditable) {
Expand Down

0 comments on commit e044bb5

Please sign in to comment.