Skip to content

Commit

Permalink
Optimize check to add hidden element
Browse files Browse the repository at this point in the history
  • Loading branch information
David Vandemaele committed Nov 21, 2018
1 parent 68c55db commit a75a7eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/tigron-datetimepicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
$(this).data('DateTimePicker').viewDate($(this).data('DateTimePicker').date());
}

if ($(input).next().length > 0) {
if ($(input).next().length > 0 && $(input).next().is('[class*="datetimepicker_"]')) {
return true;
}

Expand Down

0 comments on commit a75a7eb

Please sign in to comment.