vaadin-component-factory / input-mask

Vaadin Flow integration of imaskjs library.
Apache License 2.0
1 stars 5 forks source link

BigDecimalField not work #9

Open Aleksey2093 opened 1 year ago

Aleksey2093 commented 1 year ago

With fast character input, BigDecimal Field can get a value beyond the set max and min values.

BigDecimalField f = new BigDecimalField();
inputMask = new InputMask("Number", true,
InputMaskOption.option("scale", 2),
InputMaskOption.option("radix", ','),
InputMaskOption.option("min", "-999.99", true),
InputMaskOption.option("max", "999.99", true)
);
inputMask.extend(f.get());