taiga-family/maskito

๐Ÿž - Formatting errors in the "mm/yyyy" mode

yumadilovtimur opened this issue ยท 0 comments

Which package(s) are the source of the bug?

@maskito/core, @maskito/kit

Playground Link

https://stackblitz.com/edit/flftyp?file=mask.ts

Description

import {maskitoDateTimeOptionsGenerator} from '@maskito/kit';

export default maskitoDateTimeOptionsGenerator({
    dateMode: 'mm/yyyy',
    timeMode: 'HH:MM',
    dateSeparator: '.',
});
  1. Enter "12." into input - as a result, the value is "12.00", but "12." is expected
  2. Enter "1." into input - as a result, the value is "10.0", but "10." or "1" is expected
  3. Enter "1.2..." into input - as a result, the value is "10.0200, 00:00"

Maskito version

1.9.0

Which browsers have you used?

  • Chrome
  • Firefox
  • Safari
  • Edge

Which operating systems have you used?

  • macOS
  • Windows
  • Linux
  • iOS
  • Android