[Custom Input Masks] text-align set to right for numeric input
Question
Forge component by Sara Gonçalves

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

mvp_badge
MVP
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


Thank you :)

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.