File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
src/LiveDevelopment/BrowserScripts Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -3043,7 +3043,12 @@ function RemoteFunctions(config = {}) {
3043
3043
isEscapePressed = true ;
3044
3044
// Cancel editing
3045
3045
event . preventDefault ( ) ;
3046
- finishEditing ( element , false ) ; // false means that the edit operation was cancelled
3046
+ const newContent = element . textContent ;
3047
+ if ( oldContent !== newContent ) {
3048
+ finishEditing ( element , false ) ; // false means that the edit operation was cancelled
3049
+ } else { // no content change we can avoid sending details to the editor
3050
+ finishEditingCleanup ( element ) ;
3051
+ }
3047
3052
} else if ( event . key === "Enter" && ! event . shiftKey ) {
3048
3053
isEscapePressed = false ;
3049
3054
// Finish editing on Enter (unless Shift is held)
You can’t perform that action at this time.
0 commit comments