Fix 8688grpf1

This commit is contained in:
KernelDeimos
2024-05-16 12:48:57 -04:00
parent bee0e19eaf
commit b68873c5f4
+7 -1
View File
@@ -81,9 +81,15 @@ export default class Slider extends Component {
$(template).html(/*html*/`
<div class="slider">
<label class="slider-label">${html_encode(label)}</label>
<input class="slider-input" type="range" min="${min}" max="${max}" value="${value}" step="${step}">
<input class="slider-input" type="range">
</div>
`);
// Set attributes here to prevent XSS injection
$(template).find('.slider-input').attr('min', min);
$(template).find('.slider-input').attr('max', max);
$(template).find('.slider-input').attr('value', value);
$(template).find('.slider-input').attr('step', step);
}
on_ready ({ listen }) {