Stock small ux fixes [SCI-6714] (#4015)

Co-authored-by: Anton <anton@scinote.net>
This commit is contained in:
aignatov-bio 2022-04-13 12:15:30 +02:00 committed by GitHub
parent 04ab92b8e2
commit 36639727a1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View file

@ -956,9 +956,9 @@ var dropdownSelector = (function() {
if ($selector.length === 0) return false;
valuesArray.forEach(function(value) {
option = $selector.find(`option[value="${value}"]`)[0];
option.selected = 'selected';
options.push(convertOptionToJson(option));
option = $selector.find(`option[value="${value}"]`);
option.attr('selected', true);
options.push(convertOptionToJson(option[0]));
});
setData($selector, options);
return this;

View file

@ -49,7 +49,7 @@
data-current-amount="<%= repository_stock_value.amount %>"
data-decimals="<%= repository_stock_column.metadata['decimals'] %>"
value="<%= repository_stock_value.formatted_value %>"
placeholder="<%= t("repository_stock_values.manage_modal.amount_placeholder#{repository_stock_value.new_record? ? '_new' : ''}") %>"
placeholder="<%= t("repository_stock_values.manage_modal.amount_placeholder_new") %>"
required />
</div>
</div>