|
|
|
@ -244,23 +244,23 @@ export const PositionsSettings: Component = () => {
|
|
|
|
|
<div class="flex-1">
|
|
|
|
|
<input
|
|
|
|
|
class="w-full input input-bordered input-xs"
|
|
|
|
|
value={
|
|
|
|
|
position.quantity === 0
|
|
|
|
|
? ""
|
|
|
|
|
: position.quantity
|
|
|
|
|
}
|
|
|
|
|
value={position.quantity}
|
|
|
|
|
placeholder="Menge"
|
|
|
|
|
min="0"
|
|
|
|
|
step="0.01"
|
|
|
|
|
required
|
|
|
|
|
type="number"
|
|
|
|
|
onInput={(e) => {
|
|
|
|
|
setState(
|
|
|
|
|
"positions",
|
|
|
|
|
idx(),
|
|
|
|
|
"quantity",
|
|
|
|
|
parseFloat(e.currentTarget.value) || 0
|
|
|
|
|
);
|
|
|
|
|
}}
|
|
|
|
|
lang="en"
|
|
|
|
|
onInput={createOptionalNumberInputHandler(
|
|
|
|
|
(v) => {
|
|
|
|
|
setState(
|
|
|
|
|
"positions",
|
|
|
|
|
idx(),
|
|
|
|
|
"quantity",
|
|
|
|
|
v || 0
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
)}
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
|
</Show>
|
|
|
|
|