kirby-tools / community

Report bugs and engage in the future of the plugins
0 stars 0 forks source link

Rearranging images does not refresh live preview until another field is edited #8

Closed Thiousi closed 6 months ago

Thiousi commented 6 months ago

Environment

kirby.tools demo

Reproduction

No response

Describe the bug

  1. Navigate to a page with images (e.g. https://play.kirby.tools/panel/pages/photography+trees)
  2. Reorder images.
  3. Check preview: order is unchanged.
  4. Edit another field
  5. Check preview: order of images is changed.

Additional context

No response

Logs

No response

johannschopplich commented 6 months ago

Thanks a lot for the bug report! You're right, the Panel section wasn't listening on the file.sort event. Somehow, Kirby handles sort updates not as content updates.

Will be released with the next minor or patch version. Until then, the playground has been updated to the canary release.

I will leave this issue open to notify you when the version has been released.

johannschopplich commented 6 months ago

This has been fixed in v1.2.1.