Skip to content

Commit

Permalink
Core: drop input type conversion from number to text
Browse files Browse the repository at this point in the history
  • Loading branch information
Mottie committed Aug 7, 2019
1 parent 9d92e3b commit 1ca038e
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions js/jquery.keyboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -627,11 +627,6 @@ http://www.opensource.org/licenses/mit-license.php
.show(); // for hidden inputs
base.preview = base.$preview[0];

// Switch the number input field to text so the caret positioning will work again
if (base.preview.type === 'number') {
base.preview.type = 'text';
}

// remove extraneous attributes.
removedAttr = /^(data-|id|aria-haspopup)/i;
attrs = base.$preview.get(0).attributes;
Expand Down

0 comments on commit 1ca038e

Please sign in to comment.