Commits

stefano cudini committed 51fb2fb Draft Merge

merge

Comments (0)

Files changed (1)

leaflet-search.js

 		if ((sel = this._input.selection) && sel.empty) {
 			sel.empty();
 		}
+		else if (sel = this._input.createTextRange()) {
+			sel.collapse(true);
+			var end = this._input.value.length;
+			sel.moveStart('character', end);
+			sel.moveEnd('character', end);
+			sel.select();
+		}
 		else {
 			if (this._input.getSelection) {
 				this._input.getSelection().removeAllRanges();