Skip to content

πŸ› [BUG?] - Currencies without fraction digitsΒ #82

@stephannv

Description

@stephannv

Description

I'm trying to setup a JPY (Japanese yen) input field but it looks weird.
My HTML:

{
  allowNegative: false,
  prefix: 'οΏ₯',
  suffix: '',
  fixed: true,
  fractionDigits: 0,
  decimalSeparator: '.',
  thousandsSeparator: ',',
  cursor: 'end'
};

Result:
When empty:
Image

With one number filled:
Image

With more than one number filled: The input works as expected.

Expected behavior:
When empty:
Image

With one number filled:
Image

This lib has an example of this jpy input: https://cchanxzy.github.io/react-currency-input-field/ (Example 3)

Reproduction URL

https://gist.github.com/stephannv/7feaa93a86c76803cc1003df1831aa63

Reproduction steps

Just load the example and use the input.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugA confirmed bug

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions