RobinHerbots / Inputmask

Input Mask plugin
https://robinherbots.github.io/Inputmask/
MIT License
6.37k stars 2.17k forks source link

Remove unused mask - Take2 #2748

Closed SiKth closed 8 months ago

SiKth commented 9 months ago

I have not yet solved this issue, please advice earlier issue below. Previous issue was #2734.

I have been trying this for some time now without success. I am just trying to allow a max number of any characters to be entered, but any number below that is OK, with as placeholder and then that the rest of placeholders to disappear on blur. Here is my code, and as you can see the max number of characters in filled in by a variable. The only thing that does not work is that the stays if I fill in for example 4 out or max 10.

<input type="text" id="tryck1" name="tryck1" class="inputfield-custom hej" data-inputmask-mask="[*]" data-inputmask-greedy="true" data-inputmask-placeholder="_" data-inputmask-repeat="' . get_field('number_of_char') .'" data-inputmask-clearMaskOnLostFocus="true" data-inputmask-clearIncomplete="false" data-inputmask-removeMaskOnSubmit="true" data-inputmask-autoUnmask="true" />

Originally posted by @SiKth in https://github.com/RobinHerbots/Inputmask/issues/2734#issuecomment-1751429503

RobinHerbots commented 9 months ago

@SiKth,

I'm working on it.

RobinHerbots commented 8 months ago

@SiKth ,

Have a try with version 5.0.9-beta.37

SiKth commented 7 months ago

Works great, thanks!