Skip to content

Commit cf2914f

Browse files
author
SamWM
committed
Merge pull request #73 from kmjones77/patch-1
Update jquery.numeric.js
2 parents e05f540 + 286265d commit cf2914f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

numeric/jquery.numeric.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,11 +158,15 @@ $.fn.numeric.keyup = function(e)
158158
if(dot === 0)
159159
{
160160
this.value = "0" + val;
161+
carat++;
162+
selectionEnd++;
161163
}
162164
// if dot at position 1, check if there is a - symbol before it
163165
if(dot == 1 && val.charAt(0) == "-")
164166
{
165167
this.value = "-0" + val.substring(1);
168+
carat++;
169+
selectionEnd++;
166170
}
167171
val = this.value;
168172
}

0 commit comments

Comments
 (0)