Skip to content

Commit 0bc53eb

Browse files
simula-rJake Schroedergithub-actions
authored
Fix/toolbox node detection (#5361)
* refactor: dont need will change on animations * fix: by disabling parent pointer events and forcing on child element * fix: color picker watch with immediate option * Update test expectations [skip ci] --------- Co-authored-by: Jake Schroeder <[email protected]> Co-authored-by: github-actions <[email protected]>
1 parent a69b241 commit 0bc53eb

File tree

5 files changed

+4
-4
lines changed

5 files changed

+4
-4
lines changed
-558 Bytes
Loading
494 Bytes
Loading
-3.68 KB
Loading

src/components/graph/SelectionToolbox.vue

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
<div
33
ref="toolboxRef"
44
style="transform: translate(var(--tb-x), var(--tb-y))"
5-
class="fixed left-0 top-0 z-40"
5+
class="fixed left-0 top-0 z-40 pointer-events-none"
66
>
77
<Transition name="slide-up">
88
<Panel
99
v-if="visible"
10-
class="rounded-lg selection-toolbox"
10+
class="rounded-lg selection-toolbox pointer-events-auto"
1111
:pt="{
1212
header: 'hidden',
1313
content: 'p-0 flex flex-row'
@@ -83,7 +83,6 @@ const extensionToolboxCommands = computed<ComfyCommandImpl[]>(() => {
8383
<style scoped>
8484
.selection-toolbox {
8585
transform: translateX(-50%) translateY(-120%);
86-
will-change: transform, opacity;
8786
}
8887
8988
@keyframes slideUp {

src/components/graph/selectionToolbox/ColorPickerButton.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,8 @@ watch(
147147
showColorPicker.value = false
148148
selectedColorOption.value = null
149149
currentColorOption.value = getItemsColorOption(newSelectedItems)
150-
}
150+
},
151+
{ immediate: true }
151152
)
152153
</script>
153154

0 commit comments

Comments
 (0)