Hi Karthik,
I checked your example and add one more button 'Write numeric value' to the page 'numeric.component.html'.
Button just write in console current numeric value.
Issue I encountered:
1) write in input '15000' value and click any where in the page. Value in input will be removed. Try to write value in console with the button, value is null.
2) add any value bigger or lower then max/min value and click on button to write value. Value is usually undefined or null.
I assume that problem is because value is set to the input on losing focus .
Generally it work strange, sometime we get value when we add bigger or lower value than min/max sometimes not.
Also, I do not understand why we need double value binding here [(ngModel)]="inputValue" and [(value)] = "inputValue" ?
Regards,
Milos
|
[numeric.component.html]
<input ej-numerictextbox
[(ngModel)]="inputValue"
id = "NumericTextbox"
name="inputValue"
[minValue]= 20
[maxValue]= 50
width="100%" (ejchange) = "onValueChange($event)" (focusOut) = "onFocusedOut($event)" />
[numeric.component.ts]
onFocusedOut(event: any){
var obj = $("#NumericTextbox").ejNumericTextbox("instance");
obj._trigger("change", { value: obj.model.value, isInteraction: true });
}
|
Hi Karthik,
Thank for your response, it solved my problem.
Regards,
Milos