Skip to content
This repository has been archived by the owner on Oct 7, 2021. It is now read-only.

Commit

Permalink
cancelConfirmKeysOnEmpty behaviour was reversed
Browse files Browse the repository at this point in the history
if cancelConfirmKeysOnEmpty = false (default), then don't cancel confirm keys on empty input
  • Loading branch information
hrobertson committed Jul 25, 2017
1 parent 4a9a523 commit 3b13674
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bootstrap-tagsinput.js
Expand Up @@ -479,7 +479,7 @@
}

// If the field is empty, let the event triggered fire as usual
if (self.options.cancelConfirmKeysOnEmpty === false) {
if (self.options.cancelConfirmKeysOnEmpty !== false) {
event.preventDefault();
}
}
Expand Down

0 comments on commit 3b13674

Please sign in to comment.