You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is a typo when configuring Idiomorph in application.js.
The key should be 'morphStyle' in camel case.
See screenshot below.
With the typo, this option is ignored and the default 'outerHTML' option is used.
This creates sometimes a problem with Turbo because when I press a link and I receive the response as turbo, Idiomorph will try to merge the new content with the old turbo frametag by comparing the attributes of the element. However, Turbo automatically adds and removes some attributes on the turbo frame tag like 'src' or 'completed' while Idiomorph is running and this creates an error because Idiomorph is not able to compare the attributes
If I set the morphStyle to 'innerHTML', there is another problem. The turbo frame tag is put inside of the original turbo frame tag and there is now multiple turbo frame tag with the same name
The text was updated successfully, but these errors were encountered:
I have fixed the typo. Thanks for letting me know!
Regarding the Idiomorph issue, it seems to be a bug on their end. I'm not sure what to do about it. I have already reported it, and found a workaround: bigskysoftware/idiomorph#41
There is a typo when configuring Idiomorph in application.js.

The key should be 'morphStyle' in camel case.
See screenshot below.
With the typo, this option is ignored and the default 'outerHTML' option is used.

This creates sometimes a problem with Turbo because when I press a link and I receive the response as turbo, Idiomorph will try to merge the new content with the old turbo frametag by comparing the attributes of the element. However, Turbo automatically adds and removes some attributes on the turbo frame tag like 'src' or 'completed' while Idiomorph is running and this creates an error because Idiomorph is not able to compare the attributes
If I set the morphStyle to 'innerHTML', there is another problem. The turbo frame tag is put inside of the original turbo frame tag and there is now multiple turbo frame tag with the same name

The text was updated successfully, but these errors were encountered: