= simple_form_for search_cache, url: offers_path, html: { method: :get } do |f|
  = f.input :query, label: true, required: false, input_html: {  placeholder: 'Was? z.B. drogen, schwanger, erziehungshilfe...', spellcheck: false, autocomplete: 'off', autofocus: true, class: 'input-xlg typeahead' }
  = f.input :search_location, label: true, input_html: { value: geoloc_to_s, class: 'input-xlg JS-Search-location-display', placeholder: 'Wo? z.B. stadt, straße, plz...', oninvalid: "this.setCustomValidity('Bitte fülle dieses Feld aus')" }
  = f.input :generated_geolocation, as: :hidden, input_html: { class: 'JS-Search-location', value: default_geolocation }
  = f.input :tags, as: :hidden
  button.main-search__submit Suchen

= simple_form_for search_cache, url: offers_path, html: { method: :get } do |f|
  = f.input :query, label: true, required: false, input_html: {  placeholder: 'Was? z.B. drogen, schwanger, erziehungshilfe...', spellcheck: false, autocomplete: 'off', autofocus: true, class: 'input-xlg typeahead' }
  = f.input :search_location, label: true, input_html: { value: geoloc_to_s, class: 'input-xlg JS-Search-location-display', placeholder: 'Wo? z.B. stadt, straße, plz...', oninvalid: "this.setCustomValidity('Bitte fülle dieses Feld aus')", onchange: "try{setCustomValidity('')}catch(e){}" }
  = f.input :generated_geolocation, as: :hidden, input_html: { class: 'JS-Search-location', value: default_geolocation }
  = f.input :tags, as: :hidden
  button.main-search__submit Suchen

Fix required bug on search form
Fix required bug on search form

clarat-org/clarat,clarat-org/clarat,clarat-org/clarat,clarat-org/clarat