-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Open
Description
This seems to be the same issue as #2814
Demo: https://jsfiddle.net/qs2cL9fk/
Instructions: Place the cursor at the very start of the inputfield and input the number "1".
Demo code:
<script src="https://code.jquery.com/jquery-3.7.1.js" integrity="sha256-eKhayi8LEQwp4NKxN+CfCh+3qOVUtJn3QNZ0TciWLP4=" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery.inputmask/5.0.10-beta.11/jquery.inputmask.min.js" integrity="sha512-kEvhB1jYb2A2VMh3KCB49xB76q0veWA2M+WA/7Jvju9Dy2BaiI4FKC72UhuuxGyb9PzCCsqaahPSKLP1N3hKmw==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<input type="text" data-inputmask="'alias': 'mydate'" value="24.10.2024" />
<script>
Inputmask.extendAliases({
mydate: {
inputFormat: 'dd.mm.yyyy',
placeholder: 'TT.MM.JJJJ',
alias: 'datetime'
},
});
$(document).ready(function(){
$(":input").inputmask();
});
</script>
The bug seems to only happen when the inputfield is already filled with a value.
OS: Windows 10
Browser: Chrome 130.0.6723.59
Inputmask version: 5.0.10-beta.11
melloware and cocorossello
Metadata
Metadata
Assignees
Labels
No labels