Skip to content

Commit

Permalink
Fix overzealous find/replace
Browse files Browse the repository at this point in the history
  • Loading branch information
LukeTowers committed Dec 16, 2024
1 parent bace8e7 commit 16d7cc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/backend/widgets/form/partials/_field_range.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<span style="position: absolute; transform: translateX(-50%)"></span>
<script>
(() => {
public const input = document.getElementById("<?= $field->getId() ?>");
const input = document.getElementById("<?= $field->getId() ?>");
input.addEventListener("input", function () {
this.nextElementSibling.innerHTML = this.value;
var pos = ((this.value - <?= $min ?>) / (<?= $max ?> - <?= $min ?>) * 100);
Expand Down

0 comments on commit 16d7cc2

Please sign in to comment.