1
0
Fork 0
forked from OpenNeo/impress
impress/app/views
Emi Matchu 4c44f8d6a4 Fix species face picker going inert again after Turbo frame load
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.
2024-09-03 17:07:53 -07:00
..
about Add more NeoPass details to about page 2024-03-13 17:55:23 -07:00
alt_styles Remove outdated info from Alt Styles page 2024-05-29 18:47:06 -07:00
application Merge branch 'main' into simpler-item-previews 2024-08-31 12:50:56 -07:00
auth_users Update some stylesheets to use new page_stylesheet_link_tag helper 2024-05-14 16:10:09 -07:00
closet_hangers Fix various JS Turbo issues 2024-03-13 21:26:22 -07:00
closet_lists Add trade warning to closet list form 2024-04-16 16:53:30 -07:00
contributions i18n for contributions#index 2013-01-24 18:23:18 -06:00
devise Update some stylesheets to use new page_stylesheet_link_tag helper 2024-05-14 16:10:09 -07:00
fundraising Update some stylesheets to use new page_stylesheet_link_tag helper 2024-05-14 16:10:09 -07:00
item_trades Oops, load the data for the bulk item quantity form on the trades page! 2024-01-21 06:42:24 -08:00
items Fix species face picker going inert again after Turbo frame load 2024-09-03 17:07:53 -07:00
layouts Prevent analytics script delays from blocking other JS on the page 2024-07-07 21:11:14 -07:00
neopets_page_import_tasks refactor importing 2015-07-27 13:25:24 -04:00
outfits Remove survey link from NeoPass announcement, schedule it to vanish 2024-05-02 13:28:37 -07:00
pets Add better support for hashed pet names 2024-08-31 12:07:52 -07:00
sitemap Update most URLs to use HTTPS 2023-10-25 15:22:57 -07:00
swf_assets Fix styling for embed page for image-only SWF assets 2024-07-06 12:52:00 -07:00
users i18n for contributions#index 2013-01-24 18:23:18 -06:00