You need to sign in to do that
Don't have an account?
Alexander Tsitsura
lightning:inputField loose the incorrect value
Hi Community,
I have a strange issue while using the lightning:recordEditForm and the lightning:inputField components. When I put, for example, "1................" to the number field, it's cleared after losing the focus. It can be painful for a user which by error put for example, second "."
Here I captured the demo:
https://www.screencast.com/t/BfGA142yf7dV
Here is the code that I used:
Does anybody know how to fix that to keep the incorrect value? I want to give a chance to the user to fix an incorrect value.
Thanks,
Alex
I have a strange issue while using the lightning:recordEditForm and the lightning:inputField components. When I put, for example, "1................" to the number field, it's cleared after losing the focus. It can be painful for a user which by error put for example, second "."
Here I captured the demo:
https://www.screencast.com/t/BfGA142yf7dV
Here is the code that I used:
<lightning:recordEditForm recordId="0061U000009UEze" objectApiName="Opportunity"> <lightning:inputField fieldName="Amount" aura:id="field" /> <div class="slds-m-top_medium"> <lightning:button type="submit" label="Save" /> </div> </lightning:recordEditForm>
Does anybody know how to fix that to keep the incorrect value? I want to give a chance to the user to fix an incorrect value.
Thanks,
Alex