fixed: missing dom protection

This commit is contained in:
daboe01
2026-02-09 19:53:01 +01:00
parent dc4aa545f0
commit 7eb042d985
+2 -4
View File
@@ -630,6 +630,7 @@ CPTableViewFirstColumnOnlyAutoresizingStyle = 5;
- (void)_updateSelectedColumnBackgrounds
{
#if PLATFORM(DOM)
// 1. Remove existing column background views
[_selectedColumnBackgroundViews makeObjectsPerformSelector:@selector(removeFromSuperview)];
[_selectedColumnBackgroundViews removeAllObjects];
@@ -667,6 +668,7 @@ CPTableViewFirstColumnOnlyAutoresizingStyle = 5;
if (_visibleRowViews.hasOwnProperty(rowIndex))
[self addSubview:_visibleRowViews[rowIndex] positioned:CPWindowBelow relativeTo:nil];
}
#endif
}
/*!
@@ -5557,12 +5559,10 @@ Your delegate can implement this method to avoid subclassing the tableview to ad
// Ensure the text turns white
[self _updateDataViewsFocusState];
#if PLATFORM(DOM)
// for symmetry with _notifyViewDidResignFirstResponder
setTimeout(function() {
[self _updateSelectedColumnBackgrounds];
}, 0);
#endif
}
- (void)_notifyViewDidResignFirstResponder
@@ -5572,12 +5572,10 @@ Your delegate can implement this method to avoid subclassing the tableview to ad
// Ensure the text turns black
[self _updateDataViewsFocusState];
#if PLATFORM(DOM)
// needed because _isFocussed still returns true in this iteration of the run loop
setTimeout(function() {
[self _updateSelectedColumnBackgrounds];
}, 0);
#endif
}
@end