AngularJS
element.bind("keypress", function() {
if(attrs.id == 'headEdit' && scope.selectedTab.facebook){
return element.text().length <= 50;
}
});
Here I can set maximum text length as 50. But when paste some text(cntrl+V) into this box, the text exceeds maximumum length. This problem only in Chrome browser.