You need to sign in to do that
Don't have an account?
Ken Koellner @ Engageware
What to use instead of ui:inputText
<ui:inputText click="{!c.onfocus}" updateOn="keyup" keyup="{!c.keyPressController}" class="slds-lookup__search-input slds-input leftPaddingClass" value="{!v.searchTerm}" placeholder="search..."/>Support for the ui: tags is supposed to be ending. What I don't see in the lightning: tags is an equivelent to ui:inputText. I have the tag above and am wondering what the best thing to replace it with is and if the same options will be available. I haven't found anything that exactly matches and so I'm researching what to do to get the equivelent functionality.
>> https://developer.salesforce.com/docs/component-library/bundle/lightning:input/example#lightningcomponentdemo:exampleInputText
You can use lightning:input you can learn more about this at the above link.
Below sample snippet is the one mentioned in above this is for quick reference:
Let me know if it helps you and close your query by marking it as solved so that it can help others in the future.
Thanks.
>> https://salesforce.stackexchange.com/questions/155635/enter-key-pressed-inside-a-lightning-input
I was able to find a way mentioned in the above link i.e., to use a span tag and inside it they used onkeypressed can you try checking this?
I am adding the snippet in the snippet in above link below for quick reference:
>> Idea Link: https://trailblazer.salesforce.com/ideaView?id=0873A00000159O1QAI
Additionally, there is an open idea that you can upvote so that if it reaches the necessary threshold it may be considered in the future.