Skip to content

Commit

Permalink
Fix disappearing delimiter in object panel
Browse files Browse the repository at this point in the history
Resolves #401
  • Loading branch information
NeilFraser committed Jun 24, 2020
1 parent 43a918a commit 8b566af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions static/code/objectPanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -187,10 +187,10 @@ Code.ObjectPanel.highlight = function() {
}
if (newHighlighted !== Code.ObjectPanel.highlighted) {
if (Code.ObjectPanel.highlighted) {
Code.ObjectPanel.highlighted.className = '';
Code.ObjectPanel.highlighted.classList.remove('highlighted');
}
if (newHighlighted) {
newHighlighted.className = 'highlighted';
newHighlighted.classList.add('highlighted');
if (newHighlighted.scrollIntoView) {
newHighlighted.scrollIntoView({block: 'nearest', inline: 'nearest'});
}
Expand Down

0 comments on commit 8b566af

Please sign in to comment.