forked from OpenNeo/impress
Emi Matchu
4c44f8d6a4
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. |
||
---|---|---|
.. | ||
alt_styles | ||
application | ||
auth_users | ||
closet_hangers | ||
closet_lists | ||
contributions | ||
devise/sessions | ||
fundraising | ||
item_trades | ||
items | ||
neopets_page_import_tasks | ||
outfits | ||
partials | ||
pets | ||
swf_assets | ||
users | ||
_items.sass | ||
_layout.sass | ||
application.css.sass | ||
fonts.css.sass |