diff --git a/src/BootstrapInputAddons/widget/BootstrapInputAddons.js b/src/BootstrapInputAddons/widget/BootstrapInputAddons.js index 440cf8f..44fff09 100644 --- a/src/BootstrapInputAddons/widget/BootstrapInputAddons.js +++ b/src/BootstrapInputAddons/widget/BootstrapInputAddons.js @@ -510,9 +510,7 @@ define([ }, _getCurrentValue: function () { - var currentValue = this.inputNode.value;; - - if (this._contextObj.getAttributeType(this.fieldAttribute) === "Enum"){ + if (this._contextObj.getAttributeType(this.fieldAttribute) === "Enum" && this._isEditable()){ for (var i = 0; i < this.inputNodes.children.length; i++) { var element = this.inputNodes.children[i]; var radioElement = element.firstElementChild.firstElementChild; @@ -522,6 +520,7 @@ define([ } } + var currentValue = this.inputNode.value; return currentValue; }, diff --git a/src/package.xml b/src/package.xml index 897b23d..3993d7b 100644 --- a/src/package.xml +++ b/src/package.xml @@ -1,6 +1,6 @@ - + diff --git a/test/Test.mpr b/test/Test.mpr index dbcad2b..340fc8e 100644 Binary files a/test/Test.mpr and b/test/Test.mpr differ diff --git a/test/widgets/BootstrapInputAddons.mpk b/test/widgets/BootstrapInputAddons.mpk index ac756fd..1e52cd9 100644 Binary files a/test/widgets/BootstrapInputAddons.mpk and b/test/widgets/BootstrapInputAddons.mpk differ