decaporg / decap-cms

A Git-based CMS for Static Site Generators
https://decapcms.org
MIT License
17.77k stars 3.03k forks source link

Map widget doesn't show map inside list widget #4385

Open adamjkb opened 3 years ago

adamjkb commented 3 years ago

Describe the bug Map widget doesn't load map inside a list widget whenever there is already a value entered.

To Reproduce

  1. Create list widget containing a map widget
  2. Define a point on a map and publish page
  3. Load up published page, open widget

Expected behavior Map widget loads map

Screenshots

image

Applicable Versions:

Additional context The maps seems to render when the list widget is set to collapsed: false. However if list items moved around in closed state maps are failed to render.

kjoscha commented 3 years ago

I have the same bug on several browsers. NetlifyCMS version 2.14.3

4www commented 3 years ago

There seems to be on the map widget HTML canvas element, a display: none.

When disabled in dev tools, and the viewport resized, the map shows correctly!

No idea where the problem comes from otherwise, but also having it on npm:latest.

Edit: with the collapsed: false applied to the containing list widget, the map renders well. So:

kjoscha commented 3 years ago

is there at least any workaround to make it work with collapsed list items?

Jantastic commented 3 years ago

Any news here?

erezrokah commented 3 years ago

Hi @Jantastic, the best way to move this forward is to submit a PR for it. See here