Skip to content

Commit

Permalink
#22103 Tab away from datetime field doesn't work as
Browse files Browse the repository at this point in the history
expected

Fixed autosave support
  • Loading branch information
serjiokov committed Mar 22, 2024
1 parent be1e635 commit e639ba5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -281,9 +281,6 @@ private void viewValue(boolean forceRefresh)

viewPlaceholder.layout();
}
if (valueEditor instanceof BaseValueEditor) {
((BaseValueEditor) valueEditor).setAutoSaveEnabled(false);
}
if (valueEditor != null) {
try {
Object newValue = previewController.getValue();
Expand Down Expand Up @@ -311,9 +308,6 @@ private void viewValue(boolean forceRefresh)
}
valueEditor.setDirty(false);
}
if (valueEditor instanceof BaseValueEditor) {
((BaseValueEditor) valueEditor).setAutoSaveEnabled(true);
}
}

private void handleTraverseEvent(TraverseEvent e) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@ protected void addInlineListeners(@NotNull Control inlineControl, @NotNull Liste

private void addAutoSaveSupport(final Control inlineControl) {
inlineControl.addDisposeListener(getAutoSaveListener());
this.setAutoSaveEnabled(true);
}

@NotNull
Expand Down

0 comments on commit e639ba5

Please sign in to comment.