function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Tim Chadwick 11Tim Chadwick 11 

lightning input type="Number" opens edit modal

Hi there, Think i have hit a bug.

When building a lightning component i have a modal for creating a record.
One of the feilds for this is a currency feild so i have used the following 
<lightning:input type="number" formatter="currency" aura:id="optionField" label="Cost" value="{!v.simpleNewOption.Cost__c}"/>
Renders fine and works as expected.
EXCEPT, When you enter the character e, it brings up the background records edit page.

Thoughts ?
 
sfdcMonkey.comsfdcMonkey.com
Yes it's seems to be a bug, but actually "E" key is a global keyboard shortcut for edit record.
But i agree with you it's not expected behaviour with lightning:input field.

checkout following post for keybord shortcuts:
http://​http://sfdcmonkey.com/2017/05/22/keyboard-shortcuts-lightning-experience/

Thanks let us know if it helps you