Web: fix scrollbar showing in task list column

The blocklist component also needs to wait two ticks before emitting the
"reshuffled" event (which triggers a resize of the tasks table).
This commit is contained in:
Sybren A. Stüvel 2022-08-01 22:49:26 +02:00
parent e3e0968d88
commit 375c5ac3ac

View File

@ -73,7 +73,10 @@ function removeBlocklistEntry(blocklistEntry) {
watch(() => props.jobID, refreshBlocklist); watch(() => props.jobID, refreshBlocklist);
watch(blocklist, () => { watch(blocklist, () => {
nextTick(() => { emit("reshuffled") }) const emitter = () => { emit("reshuffled") };
nextTick(() => {
nextTick(emitter);
});
}) })
watch(isVisible, refreshBlocklist); watch(isVisible, refreshBlocklist);
onMounted(refreshBlocklist); onMounted(refreshBlocklist);