mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-02-04 06:23:45 +00:00
set active html element on click
This commit is contained in:
@@ -2472,8 +2472,8 @@ pub fn handleClick(self: *Page, target: *Node) !void {
|
||||
return self.submitForm(element, button.getForm(self));
|
||||
}
|
||||
},
|
||||
.select, .textarea => self.window._document._active_element = element,
|
||||
else => {},
|
||||
// by default set the focus on the clicked HTML element.
|
||||
else => self.window._document._active_element = element,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user