1
0
mirror of https://github.com/psychopy/psychojs.git synced 2025-05-10 18:50:54 +00:00

Fix DlgFromDict form labels not focussing/selecting corresponding input element

Use
htmlCode += '<label for="' + keyId + '">' + key + '</label>';
This commit is contained in:
Sijia Zhao 2020-05-19 18:42:59 +01:00
parent d4b52796c9
commit 4b064bccc0

View File

@ -146,7 +146,7 @@ export class GUI
if (!inUrl) if (!inUrl)
{ {
htmlCode += '<label for="' + key + '">' + key + '</label>'; htmlCode += '<label for="' + keyId + '">' + key + '</label>';
// if the field is required: // if the field is required:
if (key.slice(-1) === '*') if (key.slice(-1) === '*')