mirror of
https://gitee.com/jmix/cuba.git
synced 2024-12-05 04:38:10 +08:00
Editable false for required DateField #PL-2963
This commit is contained in:
parent
db81d780bb
commit
805f7fcd1e
@ -422,6 +422,8 @@ public class WebDateField
|
|||||||
this.editable = editable;
|
this.editable = editable;
|
||||||
timeField.setEditable(editable);
|
timeField.setEditable(editable);
|
||||||
dateField.setReadOnly(!editable);
|
dateField.setReadOnly(!editable);
|
||||||
|
|
||||||
|
component.setCompositionReadonly(!editable);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -79,6 +79,10 @@ public class DateFieldWrapper extends CustomField {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void setCompositionReadonly(boolean readonly) {
|
||||||
|
super.setReadOnly(readonly);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Object getValue() {
|
public Object getValue() {
|
||||||
return dateField.getValue();
|
return dateField.getValue();
|
||||||
|
Loading…
Reference in New Issue
Block a user