fix input type during a myChoice call
authorLaurent Mazet <mazet@softndesign.org>
Sun, 26 Jan 2025 15:44:42 +0000 (16:44 +0100)
committerLaurent Mazet <mazet@softndesign.org>
Sun, 26 Jan 2025 15:44:42 +0000 (16:44 +0100)
public/alert.js

index 1a433263b7e45eaedc8fe0c2feaf3d624e97ef2d..7709b70a5fbe94e442e58cd70ed2164d0e951ecb 100644 (file)
         for (const key of options.choices) {
             [].push.call(alertSelect.options, new Option(key, key));
         }
+        alertInput.type = "text";
         alertSelect.value = alertInput.value = defaultValue;
 
         divAlertContent.textContent = msg;