N°3649 - Activity panel: Fix case log entries truncated to first character in edit mode

This commit is contained in:
Molkobain
2021-02-10 21:30:02 +01:00
parent 8d8f6f7ed5
commit ebb80a9b05

View File

@@ -96,12 +96,17 @@ $(function() {
if (bWasDraftBefore !== bIsDraftNow) {
me.is_draft = bIsDraftNow;
me._UpdateEditingVisualHint();
// Update button only once, not at each character chane
if (me._IsSubmitAutonomous()) {
me._UpdateSubmitButtonState();
} else {
me._UpdateBridgeInput();
}
}
// We need to keep this out of the draft check as we need to update the bridge input at character change, otherwise, only the first character will be sent
if (false === me._IsSubmitAutonomous()) {
me._UpdateBridgeInput();
}
});
}
});