You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using only the options `{"prefix": "https://" } to force an URL to be filled in.
But if the input already has a value, then the value is deleted by the prefix.
How to keep to the default value?
The text was updated successfully, but these errors were encountered:
My workaround: I set the default value after initialising the cleave component with Vanilla JS.
var config_key = document.getElementById('config_key');
var config_key_value = config_key.value;
var cleave_config_key = new Cleave('#config_key', {
prefix: 'XXX-'
});
if (config_key_value) {
config_key.value = config_key_value;
}
I am using only the options `{"prefix": "https://" } to force an URL to be filled in.
But if the input already has a value, then the value is deleted by the prefix.
How to keep to the default value?
The text was updated successfully, but these errors were encountered: