set active html element on click

This commit is contained in:
Pierre Tachoire
2025-12-29 11:51:24 +01:00
parent 121cf40062
commit 0f1da17b5e

View File

@@ -2472,8 +2472,8 @@ pub fn handleClick(self: *Page, target: *Node) !void {
return self.submitForm(element, button.getForm(self)); return self.submitForm(element, button.getForm(self));
} }
}, },
.select, .textarea => self.window._document._active_element = element, // by default set the focus on the clicked HTML element.
else => {}, else => self.window._document._active_element = element,
} }
} }