Skip to content

Commit f0c7b4f

Browse files
committed
Do not reset category select after adding a value
Users often need to add multiple fields under the same category, so resetting the selection disrupts their workflow. Additionally, the previous reset approach did not properly update TomSelect's state, causing confusion as the current category appeared to remain selected. Fixes: I#38097
1 parent fa72344 commit f0c7b4f

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

share/html/Admin/Elements/AddCustomFieldValue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,6 @@ jQuery( function() {
119119
jQuery('input[name=CustomField-<% $CustomField->id %>-Value-new-SortOrder]').val(''),
120120
jQuery('input[name=CustomField-<% $CustomField->id %>-Value-new-Name]').val('').focus(),
121121
jQuery('input[name=CustomField-<% $CustomField->id %>-Value-new-Description]').val(''),
122-
jQuery('[name=CustomField-<% $CustomField->id %>-Value-new-Category]').val('');
123122
initializeSelectElements(document.querySelector('div.edit_custom_field_values'));
124123
}
125124
else {

0 commit comments

Comments
 (0)