Skip to content

Commit

Permalink
added check for counter
Browse files Browse the repository at this point in the history
  • Loading branch information
Hube2 committed Sep 27, 2016
1 parent f173b29 commit 0f93ba0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion acf-input-counter.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

change_count: function(e){
var $max = e.$el.attr('maxlength');
if (typeof($max) == 'undefined') {
if (typeof($max) == 'undefined' || e.$el.closest('.acf-input').find('.count').length == 0) {
return;
}
var $value = e.$el.val();
Expand Down

0 comments on commit 0f93ba0

Please sign in to comment.