Skip to content
This repository was archived by the owner on Dec 17, 2024. It is now read-only.

Commit ac0cbb2

Browse files
committed
fix for percolation of events in list view
1 parent a156631 commit ac0cbb2

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

app/content/css/ui.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -964,6 +964,10 @@ sidecar.no-limits-data .activation-estimated-cost-container {
964964
.sans-serif {
965965
font-family: var(--font-sans-serif);
966966
}
967+
.min-width-10em {
968+
min-width: 10em !important;
969+
display: block;
970+
}
967971
.not-too-wide {
968972
display: block; /* spans don't respond */
969973
max-width: 35em;

app/content/js/repl.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,8 @@ const formatOneListResult = options => (entity, idx, A) => {
9292
cell.className = className
9393
inner.className = innerClassName
9494
if (value) {
95-
inner.appendChild(value.nodeName ? value : document.createTextNode(value.toString()))
95+
Promise.resolve(value)
96+
.then(value => inner.appendChild(value.nodeName ? value : document.createTextNode(value.toString())))
9697
} else {
9798
console.error('Invalid cell model, no value field')
9899
}
@@ -101,7 +102,10 @@ const formatOneListResult = options => (entity, idx, A) => {
101102

102103
if (onclick) {
103104
cell.classList.add('clickable')
104-
cell.onclick = onclick
105+
cell.onclick = evt => {
106+
evt.stopPropagation() // don't trickle up to the row click handler
107+
onclick(evt)
108+
}
105109
}
106110

107111
if (watch) {

0 commit comments

Comments
 (0)