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.12.0 app/views/refine/blueprints/show.turbo_stream.erb
refine-rails-2.11.12 app/views/refine/blueprints/show.turbo_stream.erb
refine-rails-2.11.11 app/views/refine/blueprints/show.turbo_stream.erb
refine-rails-2.11.10 app/views/refine/blueprints/show.turbo_stream.erb
refine-rails-2.11.9 app/views/refine/blueprints/show.turbo_stream.erb
refine-rails-2.11.8 app/views/refine/blueprints/show.turbo_stream.erb
refine-rails-2.11.6 app/views/refine/blueprints/show.turbo_stream.erb
refine-rails-2.11.5 app/views/refine/blueprints/show.turbo_stream.erb
refine-rails-2.11.4 app/views/refine/blueprints/show.turbo_stream.erb
refine-rails-2.11.3 app/views/refine/blueprints/show.turbo_stream.erb
refine-rails-2.11.2 app/views/refine/blueprints/show.turbo_stream.erb
refine-rails-2.11.1 app/views/refine/blueprints/show.turbo_stream.erb
refine-rails-2.11.0 app/views/refine/blueprints/show.turbo_stream.erb
refine-rails-2.10.1 app/views/refine/blueprints/show.turbo_stream.erb
refine-rails-2.10.0 app/views/refine/blueprints/show.turbo_stream.erb
refine-rails-2.9.14 app/views/refine/blueprints/show.turbo_stream.erb
refine-rails-2.9.13 app/views/refine/blueprints/show.turbo_stream.erb
refine-rails-2.9.12 app/views/refine/blueprints/show.turbo_stream.erb
refine-rails-2.9.11 app/views/refine/blueprints/show.turbo_stream.erb
refine-rails-2.9.10 app/views/refine/blueprints/show.turbo_stream.erb