[Custom Input Masks] MaskCurrency - Javascript error.
Forge component by Sara Gonçalves

We are seeing a Javascript error being thrown for MaskCurrency. (Platform 11.8.2 Traditional Web App)

This has been tracked down to this section of javascript  

which is found here.

Looking at the github 5.0.0-beta318  might be a couple of iterations old are there any plans to do a upgrade?

We have removed the mask Currency instances from the application and discovered that the javascript error is also being thrown for MaskNumber.  

We have the same problem with dynamic lists and currency and decimal masks.

Someone has been able to solve it so that they can support us please

Thank you

This error can easily be solved. If you replace 

!(typeof $(elementID)[0].value === 'undefined')


!(typeof $(elementID)[0] === 'undefined')

through the whole module, the error is fixed.

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