Sha256: 4fd4aaf988b9cafc27b6e38d417f2989fde9dc978d52edbdf8352e8699c70ff2

Contents?: true

Size: 792 Bytes

Versions: 30

Compression:

Stored size: 792 Bytes

Contents

<%= turbo_stream.replace(dom_id(@refine_filter_builder, "query"), partial: "refine/blueprints/query") %>
<% if @stable_id %>
  <%= turbo_stream.append_all "body" do %>
    <script>
      (function() {
        const formId = <%= @refine_filter_builder.client_id.to_json.html_safe %>
        const event = new CustomEvent("filter-stabilized", {
          bubbles: true,
          detail: {
            stableId: <%= @stable_id.to_json.html_safe %>,
            formId: formId
          }
        })
        document
          .getElementById(<%= dom_id(@refine_filter_builder, "query").to_json.html_safe %>)
          ?.dispatchEvent(event)
      })()
    </script>
  <% end %>
<% end %>

<%= turbo_stream.replace(dom_id(@refine_filter_builder, "query"), partial: "refine/blueprints/query") %>

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
refine-rails-2.9.9 app/views/refine/blueprints/show.turbo_stream.erb
refine-rails-2.9.8 app/views/refine/blueprints/show.turbo_stream.erb
refine-rails-2.9.7 app/views/refine/blueprints/show.turbo_stream.erb
refine-rails-2.9.6 app/views/refine/blueprints/show.turbo_stream.erb
refine-rails-2.9.5 app/views/refine/blueprints/show.turbo_stream.erb
refine-rails-2.9.4 app/views/refine/blueprints/show.turbo_stream.erb
refine-rails-2.9.3 app/views/refine/blueprints/show.turbo_stream.erb
refine-rails-2.9.2 app/views/refine/blueprints/show.turbo_stream.erb
refine-rails-2.9.1 app/views/refine/blueprints/show.turbo_stream.erb
refine-rails-2.9.0 app/views/refine/blueprints/show.turbo_stream.erb