ladybird/Tests/LibWeb/Text/input/input-commit-on-unfocus.html
Timothy Flynn 08ee48606d LibWeb: Fire a change event on input elements in the focus update steps
This ensures the change event is received before the blur event.
2023-12-04 01:33:57 +01:00

18 lines
413 B
HTML

<input id=input type=text>
<script src="include.js"></script>
<script>
test(() => {
let input = document.getElementById("input");
input.addEventListener("change", () => {
println(input.value);
});
input.addEventListener("blur", () => {
println("blur");
});
internals.sendText(input, "wfh :^)");
input.blur();
})
</script>