From 908a22bcb627dc49f5cf1683c8dbc78094186084 Mon Sep 17 00:00:00 2001 From: Matt-Yorkley <9029026+Matt-Yorkley@users.noreply.github.com> Date: Sun, 30 Jan 2022 09:43:08 +0000 Subject: [PATCH] Don't repopulate states select on page load; breaks pre-filling selection from saved address --- app/webpacker/controllers/dependant_select_controller.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/app/webpacker/controllers/dependant_select_controller.js b/app/webpacker/controllers/dependant_select_controller.js index 8631121b65..f80a686bc6 100644 --- a/app/webpacker/controllers/dependant_select_controller.js +++ b/app/webpacker/controllers/dependant_select_controller.js @@ -4,10 +4,6 @@ export default class extends Controller { static targets = ["source", "select"]; static values = { options: Array }; - connect() { - this.populateSelect(parseInt(this.sourceTarget.value)); - } - handleSelectChange() { this.populateSelect(parseInt(this.sourceTarget.value)); }