Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
added text area as a ignored tagname
Browse files Browse the repository at this point in the history
  • Loading branch information
sergioramos committed Dec 1, 2012
1 parent a543e1c commit d8dff3d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/rating.js
Expand Up @@ -40,7 +40,8 @@ module.exports = function (insert) {

ev.bind(document, 'keydown', function (e) {
if(!enabled) return;
if(e.target.tagName.toLowerCase() === 'input') return;
var tag = e.target.tagName.toLowerCase();
if(tag === 'input' || tag === 'textarea') return;
if(!numbers[e.keyCode]) return;
rating = numbers[e.keyCode];
render(rating);
Expand Down

0 comments on commit d8dff3d

Please sign in to comment.