Sha256: d9ff8842ddbca623e95ddf5d3a976bb0ca49420b151134ea54955df1fd2895e8

Contents?: true

Size: 261 Bytes

Versions: 1

Compression:

Stored size: 261 Bytes

Contents

window.addEventListener('DOMContentLoaded', () => {
  const localeSelector = document.querySelector('.locale-selector select');

  if(localeSelector) {
    localeSelector.addEventListener('change', (event) => {
      event.target.form.submit();
    });
  }
});

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
solidus_starter_frontend-0.1.0 app/assets/javascripts/spree/frontend/locale_selector.js