0

I read through the documentation but didn't find an answer, I tried to use the lightning-formatted-number element, but it's only used for display and can't be edited as far as I can tell.

expected: 123

actual: 123.00

Playground

2
  • 2
    whats wrong with setting step="0" if you want 123?
    – User6670
    Mar 18 '20 at 8:42
  • haha nothing, I missed it, thank you!
    – Json
    Mar 18 '20 at 8:45
2

You can Just Set the step as "0" like

<template>
        <lightning-input type="number" name="input7" label="Number field with currency formatter" value="123" formatter="currency" step="0"></lightning-input>
</template>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.