Skip to content

Commit

Permalink
Send timezone offset as string instead of integer (Shopify#2636)
Browse files Browse the repository at this point in the history
  • Loading branch information
ludoboludo authored and SmolSoftBoi committed Feb 18, 2024
1 parent 39908ca commit 95f7120
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions assets/recipient-form.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ if (!customElements.get('recipient-form')) {
class RecipientForm extends HTMLElement {
constructor() {
super();
this.recipientFieldsLiveRegion = this.querySelector(`#Recipient-fields-live-region-${this.dataset.sectionId}`);
this.checkboxInput = this.querySelector(`#Recipient-checkbox-${this.dataset.sectionId}`);
this.checkboxInput.disabled = false;
this.hiddenControlField = this.querySelector(`#Recipient-control-${this.dataset.sectionId}`);
Expand Down Expand Up @@ -66,12 +65,10 @@ if (!customElements.get('recipient-form')) {
onChange() {
if (this.checkboxInput.checked) {
this.enableInputFields();
this.recipientFieldsLiveRegion.innerText = window.accessibilityStrings.recipientFormExpanded;
} else {
this.clearInputFields();
this.disableInputFields();
this.clearErrorMessage();
this.recipientFieldsLiveRegion.innerText = window.accessibilityStrings.recipientFormCollapsed;
}
}

Expand Down

0 comments on commit 95f7120

Please sign in to comment.