Skip to content

Commit

Permalink
edit mode interaction prevented
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmed-Bazzara committed Feb 14, 2019
1 parent 2bdd98a commit db67b86
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion src/main.less
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
.qv-object-qlik-smart-pivot {
@TableBorder: 1px solid #d3d3d3;
@KpiTableWidth: 230px;

.edit-mode{
pointer-events: none;
}
._cell(@Width: 50px) {
min-width: @Width!important;
max-width: @Width!important;
Expand Down
6 changes: 3 additions & 3 deletions src/paint.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ export default async function paint ($element, layout, component) {
component,
layout
});

const editmodeClass = component.inAnalysisState() ? '' : 'edit-mode';
const jsx = (
<React.Fragment>
<div className="kpi-table">
<div className={`kpi-table ${editmodeClass}`}>
<HeadersTable
data={state.data}
general={state.general}
Expand All @@ -29,7 +29,7 @@ export default async function paint ($element, layout, component) {
styling={state.styling}
/>
</div>
<div className="data-table">
<div className={`data-table ${editmodeClass}`}>
<HeadersTable
data={state.data}
general={state.general}
Expand Down

0 comments on commit db67b86

Please sign in to comment.