Adding new custom term will not clear numeric (custom fields)
-
Hi there,
I’ve come across a problem during term creation and want to make a proposal.
The problem is that in the process of term creation in backend (/edit-tags.php) not all fields will be cleared after the form submit.I’ve a numeric field that I want to be cleared as well.
Currently the code in tags.js:140 will only clear textareas and text inputs
$('input[type="text"]:visible, textarea:visible', form).val('');Within this process, the form is validated and text fields / -areas are cleared.
I won’t clear my custom field without validating the form again.. which is not possible anymore because the other fields are cleared.I think a fix like this would do the job.
$('input[type="text"]:visible, input[type="number"]:visible, textarea:visible', form).val('');
A class like .js-clear-after-submit-success could also the job to be able to clear other kinds of fields as well.Do I’ve to create an pull request for that on github?
The topic ‘Adding new custom term will not clear numeric (custom fields)’ is closed to new replies.