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 = {}) {
30433043 isEscapePressed = true ;
30443044 // Cancel editing
30453045 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+ }
30473052 } else if ( event . key === "Enter" && ! event . shiftKey ) {
30483053 isEscapePressed = false ;
30493054 // Finish editing on Enter (unless Shift is held)
You can’t perform that action at this time.
0 commit comments