lightning:input type="color" marked as "Wrong attribute value"

Issue #2366 resolved
Aliaksandr Luferau created an issue

The aura component lightning:input support next values for the “type” attribute:

checkbox, checkbox-button, color, date, datetime, time, email, file, password, range, search, tel, url, number, and toggle

regarding specification: https://developer.salesforce.com/docs/component-library/bundle/lightning:input/specification

but on the lighthing.xsd “color” not present:

    <xsd:simpleType name="inputTypeEnum">
        <xsd:restriction base="xsd:string">
            <xsd:enumeration value="checkbox"/>
            <xsd:enumeration value="checkbox-button"/>
            <xsd:enumeration value="date"/>
            <xsd:enumeration value="datetime-local"/>
            <xsd:enumeration value="email"/>
            <xsd:enumeration value="file"/>
            <xsd:enumeration value="month"/>
            <xsd:enumeration value="number"/>
            <xsd:enumeration value="password"/>
            <xsd:enumeration value="radio"/>
            <xsd:enumeration value="search"/>
            <xsd:enumeration value="tel"/>
            <xsd:enumeration value="text"/>
            <xsd:enumeration value="time"/>
            <xsd:enumeration value="toggle"/>
            <xsd:enumeration value="url"/>
            <xsd:enumeration value="week"/>
        </xsd:restriction>
    </xsd:simpleType>

and as a result, it marked as wrong value:

Comments (2)

  1. Log in to comment