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. |
||
|---|---|---|
| .. | ||
| about | ||
| alt_styles | ||
| application | ||
| auth_users | ||
| closet_hangers | ||
| closet_lists | ||
| contributions | ||
| devise | ||
| fundraising | ||
| item_trades | ||
| items | ||
| layouts | ||
| neopets_page_import_tasks | ||
| outfits | ||
| pets | ||
| sitemap | ||
| swf_assets | ||
| users | ||