cleave.js
cleave.js copied to clipboard
swapHiddenInput copies name attribute
When swapHiddenInput
option is used, the name
attribute of the original input is copied to the visible clone.
This is problematic when the (form containing the) input field is eventually submitted: both the formatted as the rawvalue will now be part of the request.
See: https://jsfiddle.net/wardlootens/cv67w38s/16/
See potential fix on https://github.com/WardLootens/cleave.js/commit/d042a28100d957e31df480c1df32b19acf5c276f
Just noticed this is an issue for me too. I can see both field values on my backend.
Any news on this item?
TIA