21
Views
2
Comments
[iMask Js] Unable to apply CSS
imask-js
Reactive icon
Forge asset by Paulo Moreira
Application Type
Reactive

Hi,

I am using the Integer mask and noticed that the CSS that I have applied on the (already used) input is removed. This is confirmed by looking at the page in the Dev Tools and notice that my custom CSS is no longer listed in the Input.

I really need to be able to style the input box via CSS. Can this option be added? Either by keeping the CSS as defined on the Input (preferred) or via a CSS input parameter on the iMask widget (not really preferred). 

Greetings,

Vincent

2017-03-14 07-04-32
Carlos Olías

Hi Vicent,

iMask hidde the original input and create a copy of this input to show you the value "masked" (instead apply mask over original input). This produce a lot problems, because component should copy all stuffs from original one to masked input, included input properties, js events, css (your case), etc, even changes in execution times, and is only copy a few, and only on OnInitialize. I have reported this situation here.


Regards,

2020-09-21 08-42-47
Vincent Koning

Carlos, thank you for your response. I didn't notice your post but reading that I know I will run into issues quickly. I hope the authors will respond soon otherwise I will try to find an alternative. 

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