1
0
Fork 0
forked from OpenNeo/impress
impress/app/assets
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
..
builds Bundle wardrobe-2020 into the app 2023-10-23 19:05:08 -07:00
config Upgrade to latest Sass and Sprockets 2023-10-23 19:05:09 -07:00
fonts phew. rails 3.2.12, including some asset pipeline. still buggy. 2013-03-05 20:08:57 -06:00
images Update NeoPass announcement to link to our new survey 2024-04-27 14:19:27 -07:00
javascripts Fix species face picker going inert again after Turbo frame load 2024-09-03 17:07:53 -07:00
stylesheets Fix species face picker going inert again after Turbo frame load 2024-09-03 17:07:53 -07:00