This is a migrated thread and some comments may be shown as answers.

Cannot read property 'removeClass' of undefined

2 Answers 1196 Views
NumericTextBox
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 12 Jul 2019, 07:03 PM

I have a problem with numerictextbox initialization. 

http://jsfiddle.net/je2vh4cL/

When I click on click span - everything is ok. Focus/click event from input generate error on Chrome/IE. Any ideas?

2 Answers, 1 is accepted

Sort by
0
Accepted
Eyup
Telerik team
answered on 15 Jul 2019, 10:17 AM
Hi Michael,

This happens probably because the event belongs to the same focused element which is affected by the code. You can resolve the issue by calling blur() beforehand:
https://dojo.telerik.com/OXofomIb/21

I hope this will prove helpful.

Regards,
Eyup
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Michael
Top achievements
Rank 1
answered on 15 Jul 2019, 01:54 PM
Thank you, this works as I wanted
Tags
NumericTextBox
Asked by
Michael
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Michael
Top achievements
Rank 1
Share this question
or