From cc6586e4ac9c4b7ef4889dd56c6739d4676d2817 Mon Sep 17 00:00:00 2001 From: David Zabala Date: Sat, 21 Oct 2023 12:05:23 -0500 Subject: [PATCH] setting the recently removed option as the currently selected one --- src/demo/js/script.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/demo/js/script.js b/src/demo/js/script.js index 00044a79..5e5b5e78 100644 --- a/src/demo/js/script.js +++ b/src/demo/js/script.js @@ -223,6 +223,7 @@ const preview = { const option = Array.prototype.find.call(selectElement.options, (o) => o.value === property); selectElement.disabled = false; option.disabled = false; + selectElement.value = option.value; // update and exit this.update(); },