[SalesForce] Lightning Components : Input Data Using Forms Trailhead

I've got this error:

Challenge Not yet complete… here's what's wrong:
The campingList component doesn't appear to have a Quantity input field in the form using a Lightning Base component.

While trying to complete this trailhead.
My form looks like this:

    <form class="slsd-form--stacked">
            <lightning:input aura:id="campingform" label="Item Name"
                             name="itemname"
                             value="{!v.newItem.Name}"
                             required="true"/>
            <lightning:input aura:id="campingform" label="Quantity"
                             type="number"
                             name="itemquantity"
                             value="{!v.newItem.Quantity__c}"
                             required="true"/>
            <lightning:input aura:id="campingform" label="Price"
                             name="itemprice"
                             formatter="currency"
                             value="{!v.newItem.Price__c}"
                             required="true"/>
            <lightning:button label="Add Item"
                              class="slsd-m-top--medium"
                              variant="brand"
                              onclick="{!c.addCampingItem}"/>
        </form>

Any idea what's wrong there?

Best Answer

Try this one, I hope it will solve your problem

    <lightning:input aura:id="campingform" label="Camping Name"
                                     name="campingname"
                                     value="{!v.newItem.Name}"
                                     required="true"/> 
                    <lightning:input type="number" aura:id="campingform" label="Quantity"
                                     name="campingQuantity"
                                     min="1"                                    
                                     step="1"
                                     value="{!v.newItem.Quantity__c}"
                                     messageWhenRangeUnderflow="Enter an Quantity that's at least 1."/>
                      <lightning:input type="number" aura:id="campingform" label="Price"
                                     name="campingPrice"
                                     min="0.1"
                                     formatter="currency"
                                     step="0.1"
                                     value="{!v.newItem.Price__c}"
                                     messageWhenRangeUnderflow="Enter an Price that's at least 0.1."/>
                    <lightning:input type="checkbox" aura:id="campingform" label="Packed ?"  
                                     name="campingPacked"
                                     checked="{!v.newItem.Packed__c}"/>
                    <lightning:button label="Create Camping" 
                                      class="slds-m-top--medium"
                                      variant="brand"
                                      onclick="{!c.clickCreateItem}"/>