[Custom Input Masks] text-align set to right for numeric input

Forge Component
(38)
Published on 22 Apr by Marcelo Ferreira
38 votes
Published on 22 Apr by Marcelo Ferreira

Hi,

seems that MaskNumber, MaskPercentage and MaskCurrency are changing the alignment of my input field to right. Is there a reason for that behaviour?

Thanks & regards

Magnus

Solution

Hi Magnus,

Numeric fields normally are align to right that is why that is the default behavior of the component. If you want to change that you can use AdvancedOptions. the option for this is "{ rightAlign: false }".

Regards,

Marcelo


Solution