replace this.$element.val() with this.current()
This commit is contained in:
parent
2bdb5dbdae
commit
1c8846079b
@ -10,7 +10,7 @@ define([
|
|||||||
MaximumSelectionLength.prototype.query =
|
MaximumSelectionLength.prototype.query =
|
||||||
function (decorated, params, callback) {
|
function (decorated, params, callback) {
|
||||||
|
|
||||||
var count = this.$element.val() != null ? this.$element.val().length : 0;
|
var count = this.current() != null ? this.current().length : 0;
|
||||||
if (count >= this.maximumSelectionLength) {
|
if (count >= this.maximumSelectionLength) {
|
||||||
this.trigger('results:message', {
|
this.trigger('results:message', {
|
||||||
message: 'maximumSelected',
|
message: 'maximumSelected',
|
||||||
|
Loading…
Reference in New Issue
Block a user