Skip to content

Commit

Permalink
Merge pull request #1144 from lukaw3d/patch-3
Browse files Browse the repository at this point in the history
Fix generated input ids for boolean inputs
  • Loading branch information
steveseguin authored Oct 20, 2024
2 parents 6221f5f + 8d54e68 commit 1381729
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib.js
Original file line number Diff line number Diff line change
Expand Up @@ -31834,7 +31834,7 @@ function updateDirectorsAudio(dataN, UUID) {
if (data.equalizer && n == 0) {
var label = document.createElement("label");
var i = "Low_EQ";
//label.id = "label_" +i + "_"+UUID;
//label.id = "label_" + i + "_"+UUID;
label.htmlFor = "constraints_" + i + "_" + UUID;

var input = document.createElement("input");
Expand Down Expand Up @@ -32720,9 +32720,9 @@ function updateDirectorsVideo(data, UUID) {
} else if (typeof data.cameraConstraints[i] === "boolean") {
var div = document.createElement("div");
var label = document.createElement("label");
label.id = "label_" + +i + "_" + UUID;
label.id = "label_" + i + "_" + UUID;
label.name = label.id;
label.htmlFor = "constraints_" + +i + "_" + UUID;
label.htmlFor = "constraints_" + i + "_" + UUID;
label.innerText = capitalizeFirstLetter(i).replace(/([a-z])([A-Z])/g, "$1 $2") + ":";
label.style = "display:inline-block; padding:0;";
label.dataset.keyname = i;
Expand All @@ -32741,7 +32741,7 @@ function updateDirectorsVideo(data, UUID) {
}
} catch (e) {}

input.id = "constraints_" + +i + "_" + UUID;
input.id = "constraints_" + i + "_" + UUID;
input.className = "constraintCameraInput";
input.name = input.id;
input.style = "display:inline; padding:2px;";
Expand Down

0 comments on commit 1381729

Please sign in to comment.