Pickaday uncought error maximum call stack size exceed

I am trying to use pickaday on dynamically generated input element. However it initiates infinite loop making the page unresponsive. Here is my code

$(document).on('focus', '.slcDate', function() {new Pickaday({field:this,})})

Thanks in advance