Skip to content
This repository has been archived by the owner on Aug 15, 2019. It is now read-only.

Fixes bug when trying to import tags on non existing real_input #280

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/jquery.tagsinput.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*

jQuery Tags Input Plugin 1.3.3
jQuery Tags Input Plugin 1.3.6

Copyright (c) 2011 XOXCO, Inc

Expand Down Expand Up @@ -242,7 +242,7 @@
$(data.holder).css('min-height',settings.height);
$(data.holder).css('height',settings.height);

if ($(data.real_input).val()!='') {
if ($(data.real_input).length && $(data.real_input).val()!='') {
$.fn.tagsInput.importTags($(data.real_input),$(data.real_input).val());
}
if (settings.interactive) {
Expand Down