mirror of
https://gitee.com/jmix/cuba.git
synced 2024-12-05 04:38:10 +08:00
PL-10472 User cannot reset focus for empty MaskedField
This commit is contained in:
parent
41faf45ea6
commit
1307df49ae
@ -319,6 +319,15 @@ public class CubaMaskedFieldWidget extends VTextField {
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void updateFieldContent(String text) {
|
||||
super.updateFieldContent(text);
|
||||
|
||||
if (text == null || text.isEmpty()) {
|
||||
valueBeforeEdit = valueBuilder.toString();
|
||||
}
|
||||
}
|
||||
|
||||
public void updateTextState() {
|
||||
if (valueBeforeEdit == null || !getText().equals(valueBeforeEdit)) {
|
||||
valueBeforeEdit = getText();
|
||||
|
Loading…
Reference in New Issue
Block a user