We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0055cbc commit 69f48f8Copy full SHA for 69f48f8
lib/web/mage/trim-input.js
@@ -42,10 +42,12 @@ define([
42
*/
43
_trimInput: function () {
44
// Safari caret position workaround: storing carter position
45
- const caretStart = this.options.cache.input.get(0).selectionStart;
46
- const caretEnd = this.options.cache.input.get(0).selectionEnd;
+ var caretStart, caretEnd, input;
47
48
- var input = this._getInputValue().trim();
+ caretStart = this.options.cache.input.get(0).selectionStart;
+ caretEnd = this.options.cache.input.get(0).selectionEnd;
49
+
50
+ input = this._getInputValue().trim();
51
52
this.options.cache.input.val(input);
53
0 commit comments