Warning is shown for onError and onClearErrors on ui:inputXXX

Issue #403 resolved
Tony White created an issue

I have noticed on Lightning Components that warnings are shown that onError and onClearErrors are not allowed on ui:inputXXX

However the documentation indicates they are see - https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/js_validate_fields.htm

Example: <ui:inputPhone aura:id="businessPhone" label="Business Phone" class="slds-input slds-form-element__control field phoneNumber" labelClass="slds-form-element__label" value="{!v.busPhone}" maxlength="12" required="false" placeholder="07 1234 5678" updateOn="keyup" keyup="{!c.validateRequiredField}" onError="{!c.onFieldError}" onClearErrors=""/>

Comments (6)

  1. Scott Wells repo owner

    Tony, I'm going to be updating the XSDs for these components next week for Winter '17. I'll make sure these are handled properly while I'm in there. Thanks for the report!

  2. Log in to comment