Skip to content

Commit cd9358e

Browse files
committed
Handle enum when field is not read only
1 parent cdd9f2c commit cd9358e

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

src/BootstrapInputAddons/widget/BootstrapInputAddons.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -198,10 +198,8 @@ define([
198198

199199
dojoClass.add(this.inputDiv, this._getInputDivClass());
200200

201-
if (this._contextObj.getAttributeType(this.fieldAttribute) === "Enum"){
202-
201+
if (this._contextObj.getAttributeType(this.fieldAttribute) === "Enum" && this._isEditable()){
203202
this._addEnum();
204-
205203
}else{
206204
if (!this._isEditable() && this.readOnlyMode == "textControl") {
207205
dojoAttr.set(this.inputNode, "disabled", "disabled");

src/package.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8" ?>
22
<package xmlns="http://www.mendix.com/package/1.0/">
3-
<clientModule name="BootstrapInputAddons" version="3.3.1" xmlns="http://www.mendix.com/clientModule/1.0/">
3+
<clientModule name="BootstrapInputAddons" version="3.3.2" xmlns="http://www.mendix.com/clientModule/1.0/">
44
<widgetFiles>
55
<widgetFile path="BootstrapInputAddons/BootstrapInputAddons.xml" />
66
</widgetFiles>

0 commit comments

Comments
 (0)