BeaconCMS / beacon

Open-source content management system (CMS) built with Phoenix LiveView. Faster render times to boost SEO performance, even for the most content-heavy pages.
https://beaconcms.org
MIT License
1.04k stars 101 forks source link

Content/Component - validate attr opts and slot opts #618

Closed leandrocp closed 1 month ago

leandrocp commented 1 month ago

Fixes the error [error] failed to compile module Elixir.Beacon.Web.LiveRenderer.a0bcc01f27e792cd27ed89d15303a9da.Page94f2b1db-1900-4654-a402-986bcb0f27f9

One of the built-in components were created incorrectly with an invalid slot opt which was causing the Components module to fail. This change validates attr opts and slot opts to avoid invalid state and also ignore invalid opts when loading the Components module.

leandrocp commented 1 month ago

/cherry-pick v0.1.x