You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The DOM cache is unable to find the correct element if the same type of element (ie 2 div elements) exist on the same element. the cache will always returns the first element.
An example of the scenario is:
<divclass="header"><divclass="title">This is the title</div></div>
The are two results because of this error:
the inspect mode will only activate the first element in the code editor even when the user clicks on the second item in the frame
opening the css inline editor will always open for the first element regardless of which element is currently active
To reproduce (issue 1):
open an html document and make sure that there is a line with two elements of the same type on it as per the example above.
switch to responsive mode and ensure a media query is selected
turn on the inspect mode
hover over the div.title element in the preview pane. it should be highlighted with the rest of the pane in a dark grey
click on the element in the preview pane.
At this point the editor area will scroll to the correct line but the first element (div.header) will be active, not the div.title element
To reproduce (issue 2):
open an html document and make sure that there is a line with two elements of the same type on it as per the example above.
switch to responsive mode and ensure a media query is selected
activate the div.title element in the code editor and click on cmd-e to open the inline css editor.
At this point the editor opens but the contents are for the first div element, not the second element:
The text was updated successfully, but these errors were encountered:
The DOM cache is unable to find the correct element if the same type of element (ie 2 div elements) exist on the same element. the cache will always returns the first element.
An example of the scenario is:
The are two results because of this error:
To reproduce (issue 1):
At this point the editor area will scroll to the correct line but the first element (div.header) will be active, not the div.title element
To reproduce (issue 2):
At this point the editor opens but the contents are for the first div element, not the second element:
The text was updated successfully, but these errors were encountered: