mirror of
https://gitee.com/jmix/cuba.git
synced 2024-12-04 12:17:41 +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;
|
||||
timeField.setEditable(editable);
|
||||
dateField.setReadOnly(!editable);
|
||||
|
||||
component.setCompositionReadonly(!editable);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -79,6 +79,10 @@ public class DateFieldWrapper extends CustomField {
|
||||
}
|
||||
}
|
||||
|
||||
public void setCompositionReadonly(boolean readonly) {
|
||||
super.setReadOnly(readonly);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Object getValue() {
|
||||
return dateField.getValue();
|
||||
|
Loading…
Reference in New Issue
Block a user