From e044bb53d263136bdc3564dde54559bedbec6d3d Mon Sep 17 00:00:00 2001 From: Justin Manley Date: Mon, 15 Sep 2014 17:57:55 -0500 Subject: [PATCH] Don't focus on L.Illustrate.Textbox automatically when it is added to the map. Fixes #7. --- dist/Leaflet.Illustrate.js | 1 - src/core/L.Illustrate.Textbox.js | 1 - 2 files changed, 2 deletions(-) diff --git a/dist/Leaflet.Illustrate.js b/dist/Leaflet.Illustrate.js index 67b86e2..948bdd2 100644 --- a/dist/Leaflet.Illustrate.js +++ b/dist/Leaflet.Illustrate.js @@ -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) { diff --git a/src/core/L.Illustrate.Textbox.js b/src/core/L.Illustrate.Textbox.js index 129f3b9..12bc494 100644 --- a/src/core/L.Illustrate.Textbox.js +++ b/src/core/L.Illustrate.Textbox.js @@ -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) {