mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
Make clicking on an element request focus for focusable elements.
This commit is contained in:
parent
a34d1573b6
commit
757371f4f0
5 changed files with 46 additions and 24 deletions
|
@ -2520,7 +2520,6 @@ impl VirtualMethods for HTMLInputElement {
|
|||
|
||||
//TODO: set the editing position for text inputs
|
||||
|
||||
document_from_node(self).request_focus(self.upcast());
|
||||
if self.input_type().is_textual_or_password() &&
|
||||
// Check if we display a placeholder. Layout doesn't know about this.
|
||||
!self.textinput.borrow().is_empty()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue