meteor-template-var
meteor-template-var copied to clipboard
strange behaviour of TemplateVar vs ReactiveVar
Hey Fabian!
Check out this pad http://meteorpad.com/pad/QtSnfka2yiqS4jYhd/Leaderboard
I have a library here -'autoNumeric' - which formats input fields to contain only digits. It gets initialized in onRendered block.
For some strange reason if I use TemplateVar the lib doesn't work - you can still enter letters into 1st input
.
But if I use vanilla ReactiveVar - everything works smoothly - you can type only numbers into 2nd input.
Can you check it out?