Skip to content

Cant set value correctly when use group separator and radix point #2850

@hananda

Description

@hananda
  • Describe the bug

hope anyone can help, because i have stuck in this part, so i have inputmask with config like this below

Inputmask('decimal', {
'alias': 'numeric',
'groupSeparator': ',',
'autoGroup': true,
'digits': 2,
'radixPoint': ".",
'digitsOptional': false,
'allowMinus': false,
'prefix': '',
'placeholder': ''
}).mask(".thousand_en");

i have init value like 10000.23, when the inputmask initiated, the value appear in form field is just ".23", i have cast the number to string but not working, try to set initvalue with 100,000.23 not working too

  • OS: Macos
  • Browser Safari
  • Inputmask version 5.0.7

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions