Sha256: 91d9f806220e12bf3ecacdb0ea8344564760b6bce9f060f46fc8461629dd3685

Contents?: true

Size: 531 Bytes

Versions: 147

Compression:

Stored size: 531 Bytes

Contents

<script type="text/javascript">
  window.addEventListener('load', function () {
    document.querySelector('input#country_us').onclick = function() {
      document.querySelector('primer-multi-input').activateField('states');
    };

    document.querySelector('input#country_ca').onclick = function() {
      document.querySelector('primer-multi-input').activateField('provinces');
    };
  }, false);
</script>
<%= primer_form_with(url: multi_index_path(format: :json)) do |f| %>
  <%= render(MultiInputForm.new(f)) %>
<% end %>

Version data entries

147 entries across 147 versions & 2 rubygems

Version Path
primer_view_components-0.0.121 previews/primer/forms/forms_preview/multi_input_form.html.erb
primer_view_components-0.0.120 previews/primer/forms/forms_preview/multi_input_form.html.erb
primer_view_components-0.0.119 previews/primer/forms/forms_preview/multi_input_form.html.erb
primer_view_components-0.0.118 previews/primer/forms/forms_preview/multi_input_form.html.erb
primer_view_components-0.0.117 previews/primer/forms/forms_preview/multi_input_form.html.erb
primer_view_components-0.0.116 previews/primer/forms/forms_preview/multi_input_form.html.erb
primer_view_components-0.0.115 previews/primer/forms/forms_preview/multi_input_form.html.erb