Skip to content

Commit dca27b9

Browse files
gwtbootstrap#412 Configuring Calendar popup only when ReadOnly flag is set as false. Also reconfiguring the component if readOnly flag is changed at runtime.
1 parent 11f2eae commit dca27b9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main/java/com/github/gwtbootstrap/datetimepicker/client/ui/base/DateTimeBoxBase.java

+3-1
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ public boolean isReadOnly() {
117117
*/
118118
public void setReadOnly(boolean readonly) {
119119
box.setReadOnly(readonly);
120+
reconfigure();
120121
}
121122

122123
/**
@@ -254,7 +255,8 @@ public void reconfigure() {
254255
* configure this datetimepicker.
255256
*/
256257
protected void configure() {
257-
configure(this);
258+
if(!isReadOnly())
259+
configure(this);
258260
}
259261

260262
protected native void removeDataIfExists(Element e) /*-{

0 commit comments

Comments
 (0)