intl-tel-input icon indicating copy to clipboard operation
intl-tel-input copied to clipboard

[Bug] Hidden fields are not working

Open NDruce opened this issue 9 months ago • 1 comments

Image

Image

NDruce avatar Mar 25 '25 18:03 NDruce

... populated on submit

Are you seriously, maaan

That will don't guaranty that those fields are will actually be submitted. Because request can be initiated in some cases even before JS submit events, especially when fields filling still in process by even 0.xxx ms

Fill on change event, it will be 100% reliable.

You have a good library, but so many untested cases is ☠️ But I hope all will became good and those issues be resolved 🙏🏻👍

NDruce avatar Mar 25 '25 19:03 NDruce

Apologies for the delay in getting to this - life has been getting in the way.

request can be initiated in some cases even before JS submit events

This is not possible in the intended use case. The hiddenInput option is only meant for old-fashioned websites that still use full page loads for form submissions. In this case, the form submission is not triggered by JS, it is a classic <form> with a submit button setup. So when the user clicks the button (or hits Enter), they will have finished typing.

jackocnr avatar Aug 25 '25 10:08 jackocnr