Skip to content

Commit 49d06b0

Browse files
committed
fix: revert redraw everything change
1 parent 62a2b27 commit 49d06b0

File tree

1 file changed

+1
-16
lines changed

1 file changed

+1
-16
lines changed

src/LiveDevelopment/BrowserScripts/RemoteFunctions.js

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)