Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions numeric/jquery.numeric.js
Original file line number Diff line number Diff line change
Expand Up @@ -216,8 +216,10 @@ $.fn.numeric.keyup = function(e)
}
}
// set the value and prevent the cursor moving to the end
this.value = val;
$.fn.setSelection(this, carat);
if(this.value!=val){ //avoid auto-unselect when coming to the input with tab
this.value = val;
$.fn.setSelection(this, carat);
}
}
};

Expand Down