Open kiff86 opened 11 months ago
Hi, try to mask currency with suffix, but then focus on input, caret position can be set after suffix. Is it possible that it is not possible to set the cursor to the suffix?
Here the code: $(this).inputmask('decimal',{ "autoUnmask": true, 'groupSeparator': ' ', 'digits': 2, 'radixPoint': ".", 'allowMinus': false, 'placeholder': '0E', 'rightAlign': true, 'suffix': ' E', onUnMask: function(maskedValue, unmaskedValue) { return unmaskedValue * 100; }, 'positionCaretOnClick': 'radixFocus' });
$(this).inputmask('decimal',{ "autoUnmask": true, 'groupSeparator': ' ', 'digits': 2, 'radixPoint': ".", 'allowMinus': false, 'placeholder': '0E', 'rightAlign': true, 'suffix': ' E', onUnMask: function(maskedValue, unmaskedValue) { return unmaskedValue * 100; }, 'positionCaretOnClick': 'radixFocus' });
Generally, it would be great to set the cursor to the leftmost position when focusing on the input
Same problem. Looking for a way to keep the caret before the suffix part.
Hi, try to mask currency with suffix, but then focus on input, caret position can be set after suffix. Is it possible that it is not possible to set the cursor to the suffix?
Here the code:
$(this).inputmask('decimal',{ "autoUnmask": true, 'groupSeparator': ' ', 'digits': 2, 'radixPoint': ".", 'allowMinus': false, 'placeholder': '0E', 'rightAlign': true, 'suffix': ' E', onUnMask: function(maskedValue, unmaskedValue) { return unmaskedValue * 100; }, 'positionCaretOnClick': 'radixFocus' });