maglevhq / maglev-core

Ruby on Rails website builder
https://www.maglev.dev
MIT License
273 stars 47 forks source link

Alt text form field is empty after reload #48

Closed hasaniskandar closed 1 year ago

hasaniskandar commented 1 year ago

Alt text form fields of image settings are not populated with their stored values after the editor reloaded.

Steps to reproduce

  1. Generate a new section with an image setting

    rails generate maglev:section section_01 \
     --category=content \
     --settings photo:image
  2. Run the server

    rails server
  3. Open the editor: http://localhost:3000/maglev/editor

  4. Add the section into a page

  5. Fill in the Alt text form field

  6. Save the page

  7. Reload the browser

Expected behaviour

The Alt text form field is populated with the saved value.

Actual behaviour

The Alt text form field is empty. Screenshot

System configuration

Maglev version: 1.1.7 Rails version: 7.0.4.2 Ruby version: 3.2.0