How to get total event response for InputNumber?
See original GitHub issueHow to get total event for InputNumber with antd??
To get total event response Input has on change method but InputNumber does not any method to acces total event response .
Which menas case 1 and case2 not getting same response. Beacause
- case 1 --> res --> event
- case2 —> res --> value.
Ref : antd/lib/input --> props types antd/lib/input-number–> props types (** onchange method is different for both )
handleChange(res){
console.log(res)
}
Case 1:
` <FormItem label="Note" labelCol={{ span: 4 }} wrapperCol={{ span: 8 }} >
{getFieldDecorator('note', { rules: [{ required: true, message: 'Please input your note!' }], onChange: this.handleChange })(
<Input />
)}
</FormItem>`
Case 2:
<FormItem label="Note" labelCol={{ span: 4 }} wrapperCol={{ span: 8 }} >
{getFieldDecorator('note1', { rules: [{ required: true, message: 'Please input your note!' }], onChange: this.handleChange })(
<InputNumber />
)}
Issue Analytics
- State:
- Created 7 years ago
- Comments:13 (8 by maintainers)
Top Results From Across the Web
event.target.value as a number? - javascript - Stack Overflow
You'll have to convert it to a number yourself explicitly, if that's what you want. const numValue = Number(event.target.value); // use numValue.
Read more >ASP.NET Core Blazor forms and input components
Learn how to use forms with field validation and built-in input components in Blazor.
Read more >Force response with JavaScript and HTML questions
I'm working on a questionnaire which has a couple of custom questions based on JS and HTML. I would like to make sure...
Read more >C++ User Input - W3Schools
Creating a Simple Calculator. In this example, the user must input two numbers. Then we print the sum by calculating (adding) the two...
Read more >Lambda Function Input Event and Response Format
Input Event Format · timeToLive – The length of time or number of turns in the conversation with the user that the context...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
How about this:
ohh its a typo mistake…!
I am doing something like below.