forked from OpenNeo/impress
Here, I remember the trick I learned when building the outfit viewer: web components are great for making sure stuff stays initialized well in a Turbo environment! The problem was, after submitting the form and getting a new preview loaded via Turbo, the part where we remove `inert` would get undone. Additionally, this script only loads *once* per session, so if you Turbo-nav to a different item then that part of the page never ran. Instead, we use web components to remove the attributes on mount, then again if they're ever reapplied by Idiomorph. |
||
|---|---|---|
| .. | ||
| _item.html.haml | ||
| _item_header.html.haml | ||
| _item_link.html.haml | ||
| _item_list_row.html.haml | ||
| _outfit_viewer.html.haml | ||
| index.html.haml | ||
| needed.html.haml | ||
| show.html.haml | ||
| sources.html.haml | ||