Skip to content

Commit

Permalink
Also check readonly when retrieving the current value
Browse files Browse the repository at this point in the history
  • Loading branch information
martijnraats committed Oct 17, 2018
1 parent cd9358e commit 2066ac3
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions src/BootstrapInputAddons/widget/BootstrapInputAddons.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -522,6 +520,7 @@ define([
}
}

var currentValue = this.inputNode.value;
return currentValue;
},

Expand Down
2 changes: 1 addition & 1 deletion src/package.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<package xmlns="http://www.mendix.com/package/1.0/">
<clientModule name="BootstrapInputAddons" version="3.3.2" xmlns="http://www.mendix.com/clientModule/1.0/">
<clientModule name="BootstrapInputAddons" version="3.3.3" xmlns="http://www.mendix.com/clientModule/1.0/">
<widgetFiles>
<widgetFile path="BootstrapInputAddons/BootstrapInputAddons.xml" />
</widgetFiles>
Expand Down
Binary file modified test/Test.mpr
Binary file not shown.
Binary file modified test/widgets/BootstrapInputAddons.mpk
Binary file not shown.

0 comments on commit 2066ac3

Please sign in to comment.