Commits

stefano cudini committed d9610a1 Draft

bugifx createTextRange in _hideAutoType

  • Participants
  • Parent commits 8c961f9

Comments (0)

Files changed (1)

File leaflet-search.js

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