@@ -33,10 +33,6 @@ function RemoteFunctions(config = {}) {
3333 // we need this so that we can remove click styling from the previous element when a new element is clicked
3434 let previouslyClickedElement = null ;
3535
36- // this is needed so that when user starts typing we can dismiss all the boxes and highlights
37- // now with this variable we check if its a first keystroke on an element or a subsequent keystroke
38- let _uiHiddenDuringTyping = false ;
39-
4036 var req , timeout ;
4137 var animateHighlight = function ( time ) {
4238 if ( req ) {
@@ -3822,9 +3818,6 @@ function RemoteFunctions(config = {}) {
38223818 * @param {Element } element - The DOM element to select
38233819 */
38243820 function _selectElement ( element ) {
3825- // user selected a new element, we need to reset this variable
3826- _uiHiddenDuringTyping = false ;
3827-
38283821 dismissNodeMoreOptionsBox ( ) ;
38293822 dismissAIPromptBox ( ) ;
38303823 dismissNodeInfoBox ( ) ;
@@ -4431,15 +4424,7 @@ function RemoteFunctions(config = {}) {
44314424 } ) ;
44324425
44334426 this . rememberedNodes = { } ;
4434-
4435- // when user starts typing in the editor we hide all the boxes and highlights
4436- // _uiHiddenDuringTyping variable keeps track if its a first keystroke or subsequent
4437- // so that we don't end up calling dismiss/hide kinda functions multiple times
4438- if ( ! _uiHiddenDuringTyping ) {
4439- dismissUIAndCleanupState ( ) ;
4440- hideHighlight ( ) ;
4441- _uiHiddenDuringTyping = true ;
4442- }
4427+ redrawEverything ( ) ;
44434428 } ;
44444429
44454430 function applyDOMEdits ( edits ) {
0 commit comments