I'm a newbie in Aura Components and LWC. I was scrolling through the specifications <ui:inputText/> (https://developer.salesforce.com/docs/component-library/bundle/ui:inputText/specification) and <lightning-input></lightning-input> (https://developer.salesforce.com/docs/component-library/bundle/lightning-input/specification) but I can not find the onchange or keyup methods, although they are being used as I found here for example:

<ui:inputText aura:id="lookup-field"class="slds-input slds-combobox__input slds-input-has-icon_left" 
placeholder="{!'Search ' + v.objectLabelPlural + '...'}"
disabled = "{!v.disabled}"

What is the reason behind the keyup or onchange event attributes missing in the specifications?

1 Answer 1


First, a note: ui components are deprecated. Do not use them in new code. Second, the documentation mostly only calls out events that are implemented as a CustomEvent dispatch. All standard DOM events are still triggered and still behave as normal, with the single difference being that target/currentTarget will be set to the closest Shadow DOM boundary to avoid leaking internal structures of components. DOM events otherwise behave exactly as you'd expect them to in plain HTML.

  • Okay, thanks sfdcfox
    – DevelBase2
    Commented Feb 5, 2022 at 21:14

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .