function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
幸治 俣江幸治 俣江 

「Lightning コンポーネントの基本」の「コンポーネントとイベントの接続」のハンズオンについて

Trailheadでバッチを収集中です。
「Lightning コンポーネントの基本」の「コンポーネントとイベントの接続」のハンズオンを進めているのですが、どうしても以下のエラーを消すことができません。

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.

campingListFormに以下のようにコードを書いています。


<lightning:input type="number"
                                 label="Quantity"
                                 name="Quantity"
                                 aura:id="Quantity"
                                 required="true"
                                 value="{!v.newItem.Quantity__c}"/>

どなたかこのエラーの解消方法がお分かりの方がいらっしゃいましたら、ご教示ください。

よろしくお願いします。
Best Answer chosen by 幸治 俣江
Sudipta Ghosh 9Sudipta Ghosh 9
Please try using this

<lightning:input type="number" label="Quantity" class="slds-input"
                                        name="quantity" min="1"
                                        value="{!v.newItem.Quantity__c}"
                                        required="true" aura:id="itemformQuantity"/>