cleave.js icon indicating copy to clipboard operation
cleave.js copied to clipboard

swapHiddenInput copies name attribute

Open WardLootens opened this issue 3 years ago • 2 comments

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/

WardLootens avatar Mar 08 '21 11:03 WardLootens

See potential fix on https://github.com/WardLootens/cleave.js/commit/d042a28100d957e31df480c1df32b19acf5c276f

WardLootens avatar Mar 08 '21 11:03 WardLootens

Just noticed this is an issue for me too. I can see both field values on my backend.

Any news on this item?

TIA

alexandremjacques avatar Jul 11 '21 20:07 alexandremjacques