mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
fix(dashboard): Allow selecting text in cells in Table and PivotTable without triggering cross filters (#23283)
This commit is contained in:
committed by
GitHub
parent
1b139d0748
commit
d16512b775
@@ -30,6 +30,7 @@ import {
|
||||
isAdhocColumn,
|
||||
BinaryQueryObjectFilterClause,
|
||||
t,
|
||||
getSelectedText,
|
||||
} from '@superset-ui/core';
|
||||
import { PivotTable, sortAs, aggregatorTemplates } from './react-pivottable';
|
||||
import {
|
||||
@@ -356,6 +357,11 @@ export default function PivotTableChart(props: PivotTableProps) {
|
||||
return;
|
||||
}
|
||||
|
||||
// allow selecting text in a cell
|
||||
if (getSelectedText()) {
|
||||
return;
|
||||
}
|
||||
|
||||
const isActiveFilterValue = (key: string, val: DataRecordValue) =>
|
||||
!!selectedFilters && selectedFilters[key]?.includes(val);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user