forked from fixin.me/fixin.me
Rewrite stream rendering to avoid client-side expanding
* adding streams in client breaks things (e.g. autofocus) * some tasks need to be performed in one stream action to avoid flickering (e.g. table row substitution)
This commit is contained in:
@@ -1,3 +1,2 @@
|
||||
<%= @unit.persisted? ? turbo_stream.replace(@unit) : turbo_stream.remove(@unit) %>
|
||||
<%= turbo_stream.enable id %>
|
||||
<%= turbo_stream.focus id %>
|
||||
<%= turbo_stream.close_form @unit %>
|
||||
<%#= turbo_stream.focus link_id %>
|
||||
|
||||
Reference in New Issue
Block a user