From 18742954f642e134d9080840bdb2a884aad09776 Mon Sep 17 00:00:00 2001 From: Greggman Date: Fri, 10 Jan 2025 23:03:51 +0900 Subject: [PATCH 1/6] Make it easier to click options. (#4138) --- src/common/runtime/standalone.ts | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/common/runtime/standalone.ts b/src/common/runtime/standalone.ts index 3f7333c1eb3..aefcc2946cc 100644 --- a/src/common/runtime/standalone.ts +++ b/src/common/runtime/standalone.ts @@ -633,17 +633,21 @@ void (async () => { return select; }; - for (const [optionName, info] of Object.entries(optionsInfos)) { + Object.entries(optionsInfos).forEach(([optionName, info], i) => { + const id = `option${i}`; const input = typeof optionValues[optionName] === 'boolean' ? createCheckbox(optionName) : createSelect(optionName, info); + input.attr('id', id); $('') .append($('').append(input)) - .append($('').text(camelCaseToSnakeCase(optionName))) + .append( + $('').append($('