mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-22 02:52:52 +00:00
...because "change" event should be dispatched on control even if it has "display: none" style. This change fixes selection in labels dropdown on GitHub's "new issue" page.
21 lines
406 B
HTML
21 lines
406 B
HTML
<!DOCTYPE html>
|
|
<style>
|
|
body {
|
|
margin: 0;
|
|
}
|
|
input {
|
|
display: none;
|
|
}
|
|
</style>
|
|
<label id="lbl">Label<input id="checkbox" type="checkbox"/></label>
|
|
<script src="../include.js"></script>
|
|
<script>
|
|
asyncTest((done) => {
|
|
checkbox.addEventListener("change", () => {
|
|
println("Checkbox changed");
|
|
done();
|
|
});
|
|
|
|
internals.click(5, 5);
|
|
});
|
|
</script>
|