From 9445442ff0219e7da789637a88c93e8315909e28 Mon Sep 17 00:00:00 2001 From: Sanae Date: Mon, 17 Jun 2024 19:49:19 +0000 Subject: [PATCH] use text, not html, for option label --- ui/fields/select.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/fields/select.js b/ui/fields/select.js index 2e6f1358..588c3122 100644 --- a/ui/fields/select.js +++ b/ui/fields/select.js @@ -372,13 +372,13 @@ class OBFieldSelect extends OBField { if (child.tagName === 'OB-OPTION') { let key = child.getAttribute('value'); if (key) { - options[key] = child.innerHTML; + options[key] = child.innerText; } else { // If you mix items that have a value attribute and items without them, and also // some of the values are numbers lower than the length of the iterated options up // to this point, they'll get overwritten, so this causes problems. But also come // on now. - options[Object.keys(options).length] = child.innerHTML; + options[Object.keys(options).length] = child.innerText; } } });