-
Notifications
You must be signed in to change notification settings - Fork 328
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add morph to StreamActions #639
Comments
I'm a bit confused. According to the turbo handbook, morphing can be performed with the
However,
results in
However,
results in
which throws an JS exception on Is this an oversight and |
I think is an issue here :) the update has an if method == 'morph' https://github.com/hotwired/turbo/blob/main/src/core/streams/stream_actions.js#L39-L50 idiot code
and the response will be
just a hack :) code here: https://github.com/hotwired/turbo-rails/pull/651/files |
Instead of a |
However, turbo-rails on 2.0.6 currently ignores the morph argument altogether. This call turbo_stream.replace "clearance_5", method: "morph" results in |
@AlexKovynev nice catch! |
Hi,
Is it possible to update the javascript assets 'turbo.js' to have the morph action into StreamActions?
The turbo library already have the code but the assets file 'turbo.js' doesn't have the morph action.
Thanks
The text was updated successfully, but these errors were encountered: