getkirby / kirby

Kirby's core application folder
https://getkirby.com
Other
1.32k stars 168 forks source link

[v4] Color field in Blocks Fields preview doesn't work #5795

Closed tobimori closed 1 year ago

tobimori commented 1 year ago

Description

CleanShot 2023-10-13 at 21 15 22@2x

It's not possible to click the color field in this setup. It works fine when opening the block in a drawer. In addition to that, setting it in the drawer, and closing it, will also reset the value in the fields preview to the value it was before.

Your setup

Kirby Version 4.0-beta.2 Chrome 118.0.5993.70

distantnative commented 1 year ago

Can painfully reproduce it. Since I didn't find an obvious source, I am wondering if this is related to the various focus issues on blocks. That somewhere in the code a listener for a focus event is swallowing the click.

tobimori commented 1 year ago

I'm pretty sure that it did work in a previous version if that's helpful

distantnative commented 1 year ago

Reactivity headache one - at least partially related to https://github.com/getkirby/kirby/issues/5845

bastianallgeier commented 1 year ago

This line is the culprit https://github.com/getkirby/kirby/blob/e72d4dc3b0ac98e7a7b1cdcd4626d5a267b33c13/panel/src/components/Forms/Blocks/Blocks.vue#L34