This commit is contained in:
Karl Seguin
2026-02-14 14:06:25 +08:00
parent 5c37f04d64
commit fd3e67a0b4

View File

@@ -639,7 +639,7 @@ const ActivationState = struct {
const Input = Element.Html.Input; const Input = Element.Html.Input;
fn create(event: *const Event, target: *Node, page: *Page) ? ActivationState { fn create(event: *const Event, target: *Node, page: *Page) ?ActivationState {
if (event._type_string.eql(comptime .wrap("click")) == false) { if (event._type_string.eql(comptime .wrap("click")) == false) {
return null; return null;
} }
@@ -730,15 +730,15 @@ const ActivationState = struct {
} }
// Check if same form context // Check if same form context
const other_form = other_input.getForm(page); const other_form = other_input.getForm(page);
if (form) |f| { if (form) |f| {
const of = other_form orelse continue; const of = other_form orelse continue;
if (f != of) { if (f != of) {
continue; // Different forms continue; // Different forms
} }
} else if (other_form != null) { } else if (other_form != null) {
continue; // form is null but other has a form continue; // form is null but other has a form
} }
if (other_input._checked) { if (other_input._checked) {
return other_input; return other_input;