Skip to content
Snippets Groups Projects
Commit 60d28574 authored by Loïc Correnson's avatar Loïc Correnson
Browse files

[ivette/eva] make persistent on double-click

parent f826c0e3
No related branches found
No related tags found
No related merge requests found
...@@ -171,7 +171,10 @@ function TableCell(props: TableCellProps) { ...@@ -171,7 +171,10 @@ function TableCell(props: TableCellProps) {
} }
}; };
const onDoubleClick = () => { const onDoubleClick = () => {
if (probe && probe.zoomable) probe.setZoomed(!probe.zoomed); if (probe) {
if (probe.transient) probe.setTransient(false);
if (probe.zoomable) probe.setZoomed(!probe.zoomed);
}
}; };
return ( return (
<div <div
......
...@@ -149,6 +149,7 @@ export class Model implements StateCallbacks { ...@@ -149,6 +149,7 @@ export class Model implements StateCallbacks {
this.stacks.clear(); this.stacks.clear();
this.values.clear(); this.values.clear();
this.forceLayout(); this.forceLayout();
this.forceUpdate();
} }
// --- Events // --- Events
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment