mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-11 01:44:34 +08:00
(fix) Unable to input a decimal into the stock value regularly [SCI-10117] (#7075)
This commit is contained in:
parent
49f8274e98
commit
24901016bc
1 changed files with 2 additions and 2 deletions
|
@ -41,7 +41,7 @@
|
|||
id="stock-amount"
|
||||
:inputClass="`sci-input-container-v2 ${errors.amount ? 'error' : ''}`"
|
||||
:labelClass="`text-sm font-normal ${errors.amount ? 'text-sn-delete-red' : 'text-sn-grey'}`"
|
||||
type="number"
|
||||
:type="Number(stockValue.decimals) === 0 ? 'number' : 'text'"
|
||||
:value="amount"
|
||||
:decimals="stockValue.decimals"
|
||||
:placeholder="i18n.t('repository_stock_values.manage_modal.amount_placeholder_new')"
|
||||
|
@ -101,7 +101,7 @@
|
|||
fieldClass="flex gap-2"
|
||||
inputClass="sci-input-container-v2 w-40"
|
||||
labelClass="text-sm font-normal flex items-center"
|
||||
type="number"
|
||||
:type="Number(stockValue.decimals) === 0 ? 'number' : 'text'"
|
||||
:value="lowStockTreshold"
|
||||
:decimals="stockValue.decimals"
|
||||
:placeholder="i18n.t('repository_stock_values.manage_modal.amount_placeholder_new')"
|
||||
|
|
Loading…
Reference in a new issue