diff --git a/dist/custom.LabelSelect.mpk b/dist/custom.LabelSelect.mpk index de45364..9c95c0b 100644 Binary files a/dist/custom.LabelSelect.mpk and b/dist/custom.LabelSelect.mpk differ diff --git a/src/LabelSelect/LabelSelect.xml b/src/LabelSelect/LabelSelect.xml index e558b80..c88f5af 100644 --- a/src/LabelSelect/LabelSelect.xml +++ b/src/LabelSelect/LabelSelect.xml @@ -59,10 +59,10 @@ Behavior Enable creating new labels. - - Enable case sensitivity + + Enable capital characters Behavior - Enable case sensitive labels. + Enable capital characters in labels. Read Only diff --git a/src/LabelSelect/widget/LabelSelect.js b/src/LabelSelect/widget/LabelSelect.js index c45b5a6..40b099a 100644 --- a/src/LabelSelect/widget/LabelSelect.js +++ b/src/LabelSelect/widget/LabelSelect.js @@ -165,7 +165,7 @@ define([ entity: this._tagEntity, callback: lang.hitch(this, function(obj) { //set the value - obj.set(this._tagAttribute, value); + this.enableCapitals ? obj.set(this._tagAttribute, value) : obj.set(this._tagAttribute, value.toLowerCase()); //save mx.data.commit({ mxobj: obj, @@ -291,7 +291,7 @@ define([ enableCreate: this.enableCreate, showAutocompleteOnFocus: this.showAutoCompleteOnFocus, removeConfirmation: false, - caseSensitive: this.enableCaseSensitive, + enableCapitals: this.enableCapitals, allowDuplicates: false, allowSpaces: false, readOnly: this._readOnly, diff --git a/test/widgets/custom.LabelSelect.mpk b/test/widgets/custom.LabelSelect.mpk index de45364..9c95c0b 100644 Binary files a/test/widgets/custom.LabelSelect.mpk and b/test/widgets/custom.LabelSelect.mpk differ