mirror of
https://github.com/apache/superset.git
synced 2026-04-20 00:24:38 +00:00
fix(dashboard): fix Pivot Table V2 dragPreview in the dashboard (#21539)
This commit is contained in:
@@ -826,6 +826,10 @@ export class TableRenderer extends React.Component {
|
||||
);
|
||||
}
|
||||
|
||||
isDashboardEditMode() {
|
||||
return document.contains(document.querySelector('.dashboard--editing'));
|
||||
}
|
||||
|
||||
render() {
|
||||
if (this.cachedProps !== this.props) {
|
||||
this.cachedProps = this.props;
|
||||
@@ -867,7 +871,7 @@ export class TableRenderer extends React.Component {
|
||||
};
|
||||
|
||||
return (
|
||||
<Styles>
|
||||
<Styles isDashboardEditMode={this.isDashboardEditMode()}>
|
||||
<table className="pvtTable" role="grid">
|
||||
<thead>
|
||||
{colAttrs.map((c, j) =>
|
||||
|
||||
Reference in New Issue
Block a user